how to sum values?

m4u
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
Answering your question literally:

game.result = ToInt(game.value1) + ToInt(game.value2)


But I wonder if you're asking something else? :)

m4u
Thanks Jay, it works great!

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums