View Single Post
06-22-10, 12:15 PM   #16
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Two periods (..) mean to concatenate (connect) two things together for the string. So, if UnitName("target") = "b3vad" (string), then "Hello"..UnitName("target") will equal "Hello b3vad". The ! is just an !, since it's in quotes (a string), connected to the rest of the string to print out.

Code:
print("Hello " .. UnitName("target") .. "!")
>> "Hello b3vad!"
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote