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

return does not finish the function execution with condition expression #2596

Open
TokugawaTakeshi opened this issue Jul 10, 2021 · 2 comments

Comments

@TokugawaTakeshi
Copy link

Basically, the return keyword finishing the function execution.
In below example, the function will output "c" after passing the return null.

test()

  a = false

  if a

    p("a")

  else

    p("b")

    return null

  p("c")


test()

Output:

inspect: "b"
inspect: "c"

Fiddle

@Jaya-sys
Copy link

Hey can you tell me more about this issue?

@TokugawaTakeshi
Copy link
Author

@Jaya-sys

Thank you for the interest to this issue.
Would you please to tell me first what exactly you want to know additionally to above short explanation with example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants