OSL ‐ Program Flow - Mistium/Origin-OS GitHub Wiki

Mainloop Label:

mainloop:

This label serves as the entry point for an application's script after the first run cycle. It's where the program starts running after the initial setup.

Conditional Statements:

If Statements

Switch Case

Looping Constructs:

Loops, for, each

While and Until:

While and Until

Import and Modules

Modules

Import

Running Commands in a JSON Array:

  • run ["command","command2"]:
    • The run command loops through a JSON array, executing the specified commands inside the array.

Example:

run ["command1", "command2"]