Testing for execution of the whole element using a condition and an IF section, does exactly the same as the Visibility section in an display element.
Rob,
For big chunks of code it would be better to use a quit command instead of very long if{} conditionals.
Instead of :
Code:
<Element>
<Select>
<Value> (or <Visible>
(condition)
if{
...
200 lines of code
}
</Value>
It is preferable:
Code:
<Value> (or <Visible>
(condition) !
if{ quit }
...
200 lines of code
</Value>
In the first case the parser will run over the 200+ lines of code, discarding everything down to the closing }
In the second, the script is aborted after the quit command so the rest of the code is simply ignored.
Worth especially when dealing with many huge sections iin a single gauge, separating those in <Elements> according to logical needs.
Tom






