Skip to content

OSL ‐ Program Flow

DanimalsTCGYT edited this page Aug 4, 2024 · 15 revisions

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"]

originOS Wiki

Wiki Views:
:views

OSL | RSH | ICN

Clone this wiki locally