[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Command return, with an 'if' statement used it will be TRUE (1) if condition passes or FALSE (0) if it fails, otherwise if you use a Variable it will be TRUE / FALSE as an integer.
<Var/Number> = This is the page id number for the required XML file. You can enter this number directly in or via a variable, but in both cases it must be an integer.
<Var/Number> = This is the text id number for the required entry in the XML file. You can enter this number directly in or via a variable, but in both cases it must be an integer.
Returns TRUE if
- the TFile exists in the proper language
- its XML format is readable
- the TFile has been loaded already
- the text ID exists
Besides the obvious it can also be used to check for the TFiles of a script being installed properly.
if = read text: page id = 9999, id = 100 exists
$text = read text: page= 9999 id = 100
$ship set name to $text
This will check the text entry exists and is readable before using it.
- »» General Commands
<RetVar/IF> = read text: page id = <Var/Number>, id = <Var/Number> exists