Mantis IF & ELSE Commands
The IF, ELSE, and END_IF commands allow scripts to branch dynamically based on hardware conditions such as BUTTON_PRESSED.
Syntax & Examples
hello.mantis
1IF BUTTON_PRESSED THEN2 STRINGLN Administrator mode activated.3ELSE4 STRINGLN Standard user mode.5END_IFRelated Commands
LOOP— Looping structures.BUTTON_DEF— Dedicated button handler.
Last updated on