Thanks guys, I flicked through the FAQ...must have missed it
*face palm*
I have a text box that asks the user for a number, then I have a line of text that changes and adds 10 to that number, but I can't add 10 to a string. Is there a way of asking for only an integer?
Develop games in your browser. Powerful, performant & highly capable.
Replace the "+" with "&". "This is a number "&global('varNumber') That'll work.
Replace the "+" with "&".
"This is a number "&global('varNumber')
That'll work.
Thanks that works,
And welcome to the forums!
Thanks
Hey, I was just wondering, how do you write an integer variable into a text object with a string e.g.
"This is a number"+global('varNumber')
It just displays the string...