Toggle navigation
Play
Create
Forums
Help!
Register
Log in
Forums
Quest Forum
how to sum values?
how to sum values?
Jump to last post
m4u
23 Oct 2014 18:36
Hi guys,
if game.value1 = 1 and game.value2 = 2, how to sum it to have a result 3 inside the game?
the values are obtained with the get input function...
Thanks,
jaynabonne
23 Oct 2014 19:45
Answering your question literally:
game.result = ToInt(game.value1) + ToInt(game.value2)
But I wonder if you're asking something else?
m4u
27 Oct 2014 17:54
Thanks Jay, it works great!
Back to top
This topic is now closed.
Topics are closed after 60 days of inactivity.
Forums
Quest Forum
how to sum values?
Connect
Products
Quest
Squiffy
ActiveLit
Resources
Documentation
Blog
GitHub
Support
Forums
An error has ocurred.
Close