Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if-else script returns wrong result #567

Closed
mtipnis opened this issue Oct 29, 2012 · 2 comments
Closed

if-else script returns wrong result #567

mtipnis opened this issue Oct 29, 2012 · 2 comments

Comments

@mtipnis
Copy link
Member

mtipnis commented Oct 29, 2012

if (x||y)
{
q= 12345
if (!j )
{
g = 'sad'
}
else
{
d= 'sleepy'
}
}
else
{
e = 'enjoy'
}
return q||g|| d||e;

Ans: "sad"

This doesn't look like correct behavior for the if-else statement

@hochang
Copy link
Member

hochang commented Oct 30, 2012

problem detected, skipVar trigger a skipped var's listener that should also be skipped.

@hochang
Copy link
Member

hochang commented Oct 30, 2012

fixed in #568

@hochang hochang closed this as completed Oct 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants