-
Notifications
You must be signed in to change notification settings - Fork 0
goto
Grisgram edited this page Dec 29, 2024
·
6 revisions
Scriptor is structured like a command shell script. Since there are no functions, code blocks, constructors or other advanced control mechanisms, the goto command plays an important role in managing code flow.
goto <jump_label>
A goto jumps to a defined Jump Label elsewhere in your script and continues execution there.
if some_bool == false goto skip_over
// do something if some_bool == true
skip_over:
// Execution continues hereBack to Repo ● Wiki Home
Copyright © coldrock.games
- Home
- Scriptor Contents
- Scriptor Configuration
- Notepad⁺⁺ Integration
- Create a Script
- $ Variables
- Call a GML Function
- Scriptor global functions
- #-Commands
- The Scriptor Broker
- Broker Events
- Self-Registering Scripts
- Registering Broker Events
- Scriptor Broker File Format
- Extending Scriptor
- var
- new
- goto
- gosub and return
- return (without gosub)
- call
- reset
- Loops
- Conditionals