Skip to content
Luxembourg edited this page Mar 20, 2013 · 3 revisions

@if

command: @if <string>=<true>[,<false>]

checks if <string> evaluates to a true value. if so, the command <true> is performed. if not, <false> is (if present). this command can also be called as @ifelse.

examples: > think money(me) 150 > @if [gte(money(me),1)]=say i have money., say i'm broke! you say, "i have money."

related topics: @switch, ifelse(), switch().

Clone this wiki locally