Skip to contentSkip to Content

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 THEN
2 STRINGLN Administrator mode activated.
3ELSE
4 STRINGLN Standard user mode.
5END_IF

  • LOOP — Looping structures.
  • BUTTON_DEF — Dedicated button handler.
Last updated on