We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 statements break into new functions inside private folder which breaks both /return and function macros
Example code that breaks /return:
$a = 1; function test() { if ($a == 1) { say "hi"; return 1; } return 0; } $b = test(); tellraw @a $b.toString();
Example code that breaks function macros:
$x = 1; function test() { if ($x == 1) { say "hi"; $tellraw @a $(a); } } test({a: 10});
First one should print out "hi" and "1", but instead it prints out "hi" and "0"
Second one should print out "hi" and "10", but instead it prints out nothing
The text was updated successfully, but these errors were encountered:
Intended behavior.
Sorry, something went wrong.
WingedSeal
No branches or pull requests
Describe the bug
If statements break into new functions inside private folder which breaks both /return and function macros
To Reproduce
Example code that breaks /return:
Example code that breaks function macros:
Expected behavior
First one should print out "hi" and "1", but instead it prints out "hi" and "0"
Second one should print out "hi" and "10", but instead it prints out nothing
Desktop
The text was updated successfully, but these errors were encountered: