Expression Language
Also available as:
PDF

anyAttribute

Description: Checks to see if any of the given attributes, match the given condition. This function has no subject and takes one or more arguments that are the names of attributes to which the remainder of the Expression is to be applied. If any of the attributes specified, when evaluated against the rest of the Expression, returns a value of true, then this function will return true. Otherwise, this function will return false.

Subject Type: No Subject

Arguments:

  • Attribute Names : One or more attribute names to evaluate

Return Type: Boolean

Examples: Given that the "abc" attribute contains the value "hello world", "xyz" contains "good bye world", and "filename" contains "file.txt" consider the following examples:

Table 1.20. Table 20. anyAttribute Examples

Expression

Value

${anyAttribute("abc", "xyz"):contains("bye")}

true

${anyAttribute("filename","xyz"):toUpper():contains("e")}

false