Flynet Simulated Host

Else Tag

Else Tag

Previous topic Next topic  

Else Tag

Previous topic Next topic  

The Else tag is a special-use tag that is unique within the Simulated Host scripting language.  While the Else tag could have been implemented as a container style tag, initial prototypes of scripts indicated that this was a clumsy approach to coding, as the indentation of the <Else>...</Else> was counter-intuitive to standard language users.

 

As a result, it was decided to make the Else tag a simple seperator between the TRUE and FALSE portions of the IF that the Else is a child of.  As a result, every instance of an Else tag is a single tag:

 

<IfXxx>

...true conditions

<Else/>

...false conditions

</IfXxx>

 

Note that only one Else tag is allowed/supported inside each IF block.

 

Also, there is no ElseIF tag in the Simulated Host language...you must indent and use another IF tag in order to further qualify an ELSE block.