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
calculating within a variable
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10058
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: calculating within a variable
The quotes tell LiveCode to treat everything between them as a literal string. Remove the quotes and try again.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 125
- Joined: Sat Jan 31, 2009 12:01 am
Re: calculating within a variable
How can i convert the literal back to a calculation....?
-
- VIP Livecode Opensource Backer
- Posts: 10058
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: calculating within a variable
Remove the quotes.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn