What is the expected output?
Review the following expression rule:
ri!name is defined as "Maria".
ri!directory is defined as the following:
What is the expected output?
A . Maria
B . 0
C . 1
Answer: C
Explanation:
Given that ri!name is defined as "Maria" and ri!directory contains two a!map() structures, one of which includes the name "Maria," the expression wherecontains(ri!name, index(ri!directory, "name")) will evaluate as follows: The index() function will return a list of values from ri!directory for the key "name," which will be {"Maria", "Steven"}. The wherecontains() function will then check where "Maria" is found within this list. Since "Maria" is the first element, the function will return a list of indices where "Maria" is found, in this case, {1}. Appian lists are 1-indexed, so the first position is represented by 1, not 0.
Reference: Appian Expression Language Documentation – Functions
Latest ACD101 Dumps Valid Version with 59 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund