In the official docs: https://commons.apache.org/proper/commons-ognl/language-guide.html
there is an explanation for in
operator:
The in operator (and not in, its negation). This is a containment test, to see if a value is in a collection. For example,
name in {null,"Untitled"} || name
I'm unable to understand this expression but quite intrigued by it.
It checks whether name
is null
or "Untitled"
. If it's not then it returns name
instead of a boolean value, am I right?