Skip to content
DonMartin76 edited this page Jul 14, 2015 · 1 revision

The False and True operators do not take any parameters and simply returns a boolean false or true.

What Type
Syntax False(), True()
Return type bool

This may be useful when creating custom operators for checking more complicated rules, e.g. for validation.

Example:

<CustomOperator name="IsValid" paramCount="0" returnType="bool">
  <Parameters />
  <Switch>
    <Case condition='$Name="<undefined>"'>False()</Case>
    <Case condition='IsEmpty($Name)'>False()</Case>
    <Otherwise>True()</Otherwise>
  </Switch>
</CustomOperator>

Not that this custom operator does not have any parameters, but simply uses the $Name field directly.

Clone this wiki locally