Page 1 of 1

calculating within a variable

Posted: Wed Jan 22, 2014 6:09 am
by scotttyang
If I put "1+1" into x

but if I put x, I get "1+1"

how can I do a calculation of the variable x so I can get the answer of 2?

Is it possible?

Scott

Re: calculating within a variable

Posted: Wed Jan 22, 2014 6:11 am
by FourthWorld
The quotes tell LiveCode to treat everything between them as a literal string. Remove the quotes and try again.

Re: calculating within a variable

Posted: Wed Jan 22, 2014 6:19 am
by scotttyang
How can i convert the literal back to a calculation....?

Re: calculating within a variable

Posted: Wed Jan 22, 2014 6:48 am
by FourthWorld
Remove the quotes.