You are currently reviewing an older revision of this page.
a!isNullOrEmpty({null}) returns false
a!isNullOrEmpty({null})
false
This is expected product behavior. A set with the element null is not a null set.
Additionally, a!isNullOrEmpty() does not iterate over lists to check for null elements; the purpose of this is to keep the function's performance fast.
Please see the below chart for more examples of expected product behavior regarding a!isNullOrEmpty():
a!isNullOrEmpty({{}, ""})
a!isNullOrEmpty(cast(197, ""))
a!isNullOrEmpty({tostring(null), tointeger(null)})
a!isNullOrEmpty({null,null})
If the value being checked is a list that may contain only null elements, please use the length() or a!forEach() functions
This article applies to all versions of Appian.
Last Reviewed: August 2022