Hello!
I'm tying to combine four number values into a single number value like this:
Variable_A = 2
Variable_B = 0
Variable_C = 2
Variable_D = 5
...And then take all the values and combine them into another variable's value:
Variable_Combined = 2025
I've spent several hours puzzling over this. Is this even possible to do? Any help is appreciated!
You could convert each to a string and concatenate them, then convert back in the Set value action: int( str(Variable_A) & str(Variable B) & ... ).
Set value
int( str(Variable_A) & str(Variable B) & ... )
Set Variable_Combined to int(str(Variable_A) & str(Variable_B) & str(Variable_C) & str(Variable_D))
Thank you phlp!
Or maybe 1000*a+100*b+10*c+d.
Very interesting solution Rojohound!
Develop games in your browser. Powerful, performant & highly capable.
Great!