[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, it will contain '1' if the player has a police licence for that race or '0' if not.
<Var/Race> = A race or variable containing it.
This checks, if the player has a police licence for the as <Var/Race> selected race. If he has one, the command will return '1', if not '0'.
Example:
$size= size of array $races.arr
while $size
|dec $size=
|$race=$races.arr[$size]
|if player has police license for race $race
||player loses police licence for race $race
|end
end
return null
Assuming the array $races.arr contains races, this will remove the police licences for that races from the player inventory.
Related Commands:
player loses police licence for race <Var/Race>
Command Location:
- »» Universe and Sector Commands
<RetVar/IF> player has police licence for race <Var/Race>