Closed JoePelz closed 8 years ago
Nested if-statements can give incorrect results because of variable reuse. This issue will be fixed by implementing CodeBlock objects. Example:
1 < 2 if 3 > 2 if echo "endpoint A " ? else echo "endpoint B " ? else echo "endpoint C "
Expected output is endpoint A Actual output is endpoint A, endpoint C do to the ? reusing boolean variables.
endpoint A
endpoint A, endpoint C
?
This issue has also been fixed, as of commit ab7b343825ff7dc5aa1074eb365e6143603d6dee
Nested if-statements can give incorrect results because of variable reuse. This issue will be fixed by implementing CodeBlock objects. Example:
Expected output is
endpoint A
Actual output isendpoint A, endpoint C
do to the?
reusing boolean variables.