If statement does not work with complicated variable access
Closed this issue · 3 comments
bichanna commented
This if statement does not work:
if arr@i == arr@j then # do_something
So, to solve this, just assign them to new variables for now:
a = arr@i
b = arr@j
if a == b then # do_something
Update
See the comment below, which is way better.
bichanna commented
Actually, this problem can be solved without creating disposable variables:
if (arr@i) == (arr@j) then # do something
GalaxianMonster commented
Umm, will you fix this issue so that you don't need to add parenthesis or create disposable variables?
bichanna commented
I'm trying to solve this, but it might take some time.