Solved
how to correctly write the judgement expression for couple of items with null value inside?

as title, i want express if isnull(backuppricingaudit) then don't do anything with it. Without foreach loop, how to express it?

as title, i want express if isnull(backuppricingaudit) then don't do anything with it. Without foreach loop, how to express it?
Hi immortalvirgil,
I'm assuming that backuppricingaudit is a local variable you have created in an interface or expression rule?
If so, one approach you can use is a combination of a!flatten() with isnull() and length().
By definition a!flatten() converts an array that contains other arrays into an array of single items, preserving the types and relative order of all the nested array items.
e.g. The following code will return true
a!localVariables(
local!backuppricingaudit: { {null}, {null} },
or(
isnull(a!flatten(local!backuppricingaudit)),
length(a!flatten(local!backuppricingaudit)) < 1
)
)Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.