|
|
Usage: |
|
if (Expression) {Command Block;}; [else {Command Block;};] |
|
Description: |
| |
The if keyword will direct QLAD to evaluate the
expression, and if the result is true, to execute the
Command Block. If you provide an else keyword on a
following line, it will execute the command block if the previous
expression was false.
|
|
Example: |
|
| QLAD Script |
# Adds a !myteam command for players
on pcmd_myteam { if ($strcasecmp($(pteam),Blue)) {/say_resp * You are on blue.;/say_resp * Smurfy!;}; else if ($strcasecmp($(pteam),Red)) /say_resp * You are on bloody red.; else /say_resp * You are on $(pteam); };
|
|
|
|