Skip to content

Conditionals

Rajesh Gautam edited this page Jun 12, 2026 · 1 revision

Conditionals

Basic if

if{var{score} >= 90, then}-
    pcType{"Grade: A"}\
--\

if / else

if{var{score} >= 90, then}-
    pcType{"Pass"}\
else:
    pcType{"Fail"}\
--\

if / elif / else

if{var{score} >= 90, then}-
    pcType{"A"}\
elif{var{score} >= 80, then}-
    pcType{"B"}\
elif{var{score} >= 70, then}-
    pcType{"C"}\
else:
    pcType{"F"}\
--\

if / elif without else

Close with --\--\ (one per open block):

if{var{x} > 10, then}-
    pcType{"big"}\
elif{var{x} == 10, then}-
    pcType{"exact"}\
--\--\

Supported Operators

Operator Meaning
== Equals
!= Not equals
< Less than
> Greater than
<= Less than or equal
>= Greater than or equal

Clone this wiki locally