Skip to content

falling through labels should send you to the next one #5

Description

@oatmealine

it's common practice in eg. batch scripts to have something along the lines of

run command
[label]
run command

and jump to label if the first command should be skipped, but continue running the second command afterwards. currently in scrunkly, falling out at any label, regardless of position in the script, will end the script - this is unideal for situations like:

if tutorial_explained goto explained
say "here's how you do it!"
-- ...
goto explained
[explained]
say "see you later!"

having another goto at the end is a little unnecessary imo; and there's no real harm in instead forcing the less common usecase to use something like this:

goto exit
-- ...

[exit]
-- end of script

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions