How do I do maths with variables?

A error pops when i try to compute the + or * of two .get global variables
(cannot * " " and " ")

i am new this platform is there any way to tackle this situation

Please show the actual error message

image

Set your balance and gamble_amount variables to 0 (zero), they cannot be empty/blank

Also, do your randomization in run time events, not in global inits.

image
is this the right way to do it

i am sorry , can you elaborate . which statement you are referring to here.

Safer to do it this way:

image

the .initialize will run once during the startup right? or is it other way around

image
thanks this is better.