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

【BUG】条件语句返回异常 #554

Closed
oooqqqooo opened this issue Jun 29, 2023 · 2 comments
Closed

【BUG】条件语句返回异常 #554

oooqqqooo opened this issue Jun 29, 2023 · 2 comments

Comments

@oooqqqooo
Copy link

let result = nil;
if a == 1 {
result = 2;
} elsif a == 0 {
return 1;
}
return result;

上述代码当a=1时返回为null,请问这是什么问题

@killme2008
Copy link
Owner

看起来是 elsif 和 return 在一起有个bug,我这周确认并修复下。

@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