a!localVariables( local!boolenArr: { false }, local!texts: { "A", "B" }, if(local!boolenArr, {}, local!texts) )
Is this expected behavior in Appian? I was expecting it to return all the items in local!texts. Just want to confirm if I’m missing something or if this is something we should be cautious about in expressions.
Thanks in advance!
Discussion posts and replies are publicly visible
There is a specific section in the documentation on this. See if() Function - Appian 25.1
hi Shahid , When passed a list containing a single boolean and lists in the value parameters, only the first item of the selected list will be returned. if a single value is passed to the condition and there are lists in the value parameters, the entire list is returned.Yes, we can find this in the documentation, as Laurens mentioned.