[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = If the command is to 'return' a variable. If a variable is used, this command will return TRUE or FALSE.
<Var/Ware> = The ware you wish to check.
Some wares are inventory and some are not. This command will let you check if it is of the type 'inventory' on the player ship or not.
Inventory can only be on the player ship.
Example:
$ware = Unfocussed Jumpdrive
IF = is inventory: ware=$ware
| install 1 units of ware: $ware
else
| add 1 units of ware: $ware
end
With this you can install the ware if it is an inventory, or add it to the cargo bay if it is not.
Additional Information:
- Some of the Inventory wares available:
- Salvage Insurance
- Data Disc
- Unfocussed Jumpdrive
Command Location:
- »» Trade Commands
<RetVar/IF> = is inventory: ware=<Var/Ware>