Closed quicklyfast closed 6 months ago
Thank you for the PR, @quicklyfast .
OGNL does not treat empty string/collection/array as boolean, so this will confuse users especially when the expression contains multiple conditions combined with and
or or
.
You can easily check the size of string, array or collection.
.length
for String
and array.size
or .isEmpty
pseudo-property for collections
ExpressionEvaluator supports the logic for checking empty collections and empty strings