Expression Language
Also available as:
PDF

and

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

Subject Type: Boolean

Arguments:

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

Return Type: Boolean

Examples: We can check if the filename is both all lower-case and has at least 5 characters by using the Expression

${filename:toLower():equals( ${filename} ):and(
        ${filename:length():ge(5)}
)}