Gen-lang/Gen

If statement does not work with complicated variable access

Closed this issue · 3 comments

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.

Actually, this problem can be solved without creating disposable variables:

if (arr@i) == (arr@j) then # do something

Umm, will you fix this issue so that you don't need to add parenthesis or create disposable variables?

I'm trying to solve this, but it might take some time.