[skip|else] if [not]|while [not]| = The possible 'conditional' statements that can be used with this command.
<RetVar/IF> = variable where the requested information is put.
<RefObj> = The object you want to check.
<Var/Class> = An object class.
This function check if the object is of the specified class. It will return [TRUE] if <RefObj> belongs to the <Var/Class> or any children of this class. Otherwise, or if the object doesn't exist, it will return null.
Example:
if [PLAYERSHIP] -> is of class Freighter
| write to logbook "you are flying a trading ship"
else
| write to logbook "you are flying a combat ship"
end
Related Commands:
<RetVar/IF> = <RefObj> -> get object class
Additional Information:
List of Ingame Object Classes.
Command Location:
- »» General Object Commands
<RetVar/IF><RefObj> if of class <Var/Class>