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

5.2.7版本 if...elsif... 和 continue 组合使用 end未打印 #566

Closed
zzw159263 opened this issue Aug 30, 2023 · 3 comments
Closed

5.2.7版本 if...elsif... 和 continue 组合使用 end未打印 #566

zzw159263 opened this issue Aug 30, 2023 · 3 comments

Comments

@zzw159263
Copy link

for i in range(0, 10) {

if (i != 3 && i != 2) {
    log("condition1");
} elsif(i != 3) {
    log("condition2");
} elsif(i != 2) {
    log("condition3");
    continue;
}

log("end"+i)

}

@zzw159263
Copy link
Author

分析下边的代码的结果,好像是每个if分支条件都加上了continue
for i in range(0, 10) {

if (i == 1) {
    log("condition1");
} elsif(i == 2) {
    log("condition2");
} elsif(i == 3) {
    log("condition3");
    continue;
}

log("end"+i)

}

@killme2008
Copy link
Owner

应该是跟这个一样的问题 #554
近期会修复,感谢报告

@killme2008
Copy link
Owner

jiudc pushed a commit to jiudc/aviatorscript that referenced this issue Feb 24, 2024
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