displayvalue() Function returning wrong result

Certified Associate Developer

Hi All,

Please help in understanding or explaining the working of the following code.

displayvalue(
5,
{ 1, 2, 3, 4, 5 },
{ "A", "B", "C", "D" },
"Z"
)

In the above sample code, based on it's behavior, ideally, the result should be the default value ("Z" in this case as there is no item in 5th index of 2nd array). But the result I'm getting is "A", the 1st index from the array.

Version I'm using is Appian 24.4

Please refer the screenshot attached.

  Discussion posts and replies are publicly visible