Simple Conditionals

Parent Previous Next



Simple conditionals


Simple conditionals take one of the following forms:


  [<matchable> <operator> <value>]

  [<matchable>.contains(<value>)]


Matchable is one of the following:


  @Test – the value of the property with the key ‘Test’

  @Test.value() – the value of the property with the key ‘Test’

  @Test.type() – the type of the property with the key ‘Test’

  @Test.name() – the name of the property with the key ‘Test’

  name() – the name of the current object

  type() – the type of the current object


Operator is one of the following:


  == - returns a match if the matchable is the same as value.

  != - returns a match if the matchable is not the same as value.

  -> - returns a match if the matchable is matched by the regular expression pattern specified by value.


Note that the == and != operators are case sensitive. The -> and .contains() operators are case insensitive.