Combine a text with a attribute?
daverenner
Member Posts: 133
I want to display a text followed by a value from an attribute. Like "Hello" + NameString. Or $hello.$name
I'm used to PHP, trying to figure GS out. I did try text..Attribute and got an :Invalid Expression" error.
I'm used to PHP, trying to figure GS out. I did try text..Attribute and got an :Invalid Expression" error.
Comments
".." (double period) is the concatenate operator.
Example:
`"Hello"..self.Name`
Result:
HelloActor 1
So, using your example, i need "Hello Mister"..self.name
http://photics.com/books/gamesalad-textbook
I have 3 text attribute in game a, b, c
use change attribute game.c to game.a .. game.c
then c = a+b
but I didn't find any other operaction work for text.