-
Notifications
You must be signed in to change notification settings - Fork 0
Conditionals
Rajesh Gautam edited this page Jun 12, 2026
·
1 revision
if{var{score} >= 90, then}-
pcType{"Grade: A"}\
--\
if{var{score} >= 90, then}-
pcType{"Pass"}\
else:
pcType{"Fail"}\
--\
if{var{score} >= 90, then}-
pcType{"A"}\
elif{var{score} >= 80, then}-
pcType{"B"}\
elif{var{score} >= 70, then}-
pcType{"C"}\
else:
pcType{"F"}\
--\
Close with --\--\ (one per open block):
if{var{x} > 10, then}-
pcType{"big"}\
elif{var{x} == 10, then}-
pcType{"exact"}\
--\--\
| Operator | Meaning |
|---|---|
== |
Equals |
!= |
Not equals |
< |
Less than |
> |
Greater than |
<= |
Less than or equal |
>= |
Greater than or equal |