Expression Language
Also available as:
PDF

or

Description: The or function takes as a single argument a Boolean value and returns true if either the Subject or the argument is true. If both the subject and the argument are false, the function returns false. If either the Subject or the argument cannot be coerced into a Boolean value, this function will return false.

Subject Type: Boolean

Arguments:

  • condition : The right-hand-side of the 'and' Expression

Return Type: Boolean

Examples: The following example will return true if either the filename has exactly 5 characters or if the filename is all lower-case.

${filename:toLower():equals( ${filename} ):or(
        ${filename:length():equals(5)}
)}