Hi i have a question thats puzzled me.
what i want to do is save a value to a var and muliply this value by a number that the user can enter in text field.
I would then like to display this updated value in a seperate field.
i have a jpeg that the user clicks on. i can update the global var baised on this click but i dont know how to save the user input because I want to do this as a phone app ie android.
then what is the process for multiplication of my button click var multiplied by the user input var to display the total value?
Hope Im making sense
any clarification please let me know.
Unfortunately, I really don’t understand what you’re trying to accomplish.
However, to multiply a variable and store the value into another variable all you have to do is put a multiplication symbol in your “result” variable.
So if “EnteredVar = 5”
And you want to store it into another variable, but multiplied by 2, all you would have to do is Modify the value of ResultVar = “Variable(EnteredVar)*5”
All of the above items are just example variable names, and assume you’re using scene variables. Make sure you read up on variables in the wiki and use the expression builder to use the correct expressions.
sorry just to clarify you meant
So if “EnteredVar = 5”
And you want to store it into another variable, but multiplied by 2, all you would have to do is Modify the value of ResultVar = “Variable(EnteredVar)*5” <<<< this *5 should read *2? is this correct or should it be 5 as stated?
As mentioned, all of the above are just examples. You can use any multiplier you want.