Hi!,
So, I have 2 vars, example:
x=2
y=1
And I want z to be x and y, one besides the other, not a sum:
z=21
I've been using &, but it is for string concatenation and gives me an error. (z always equals 1 that way).
Thanks!
Develop games in your browser. Powerful, performant & highly capable.
set z to int(x&y)
Tried it and not working
Okay, use this instead:
str(x)&str(y)
The "&" operator is both string concentration and logical and. If both values are numbers then logical and is used otherwise string concentration is used.
Okay, use this instead: str(x)&str(y) The "&" operator is both string concentration and logical and. If both values are numbers then logical and is used otherwise string concentration is used.
Thanks, it is working now!