Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stored Variable
#5
Use int instead of str, and no quotes.

int test ;;declare integer variable test
test=8 ;;assign integer value
out (test + 1) ;;display test + 1 (=9)

Or, if it must be string, convert it to integer to do calculations:

str test ;;declare string variable test
test="8" ;;assign string

int i=val(test) ;;convert to integer
i=i+1 ;;or just i+1
test=i ;;convert to string

out test


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)