List of text string returning only first item

Certified Associate Developer
Hi everyone,

I’m facing a behavior in Appian that I wanted to confirm is expected or not.

I have a List of Text String, and when I use it directly inside an if() condition, it seems to always returns the first item in the list.

Here’s a simplified example:
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