Review the following code snippet:
displayvalue(1, {0, 1, 2}, {"Low", "Medium", "High"}, "Unknown")
The definition of displayvalue is:
Tries to match a value in a given array with a value at the same index in a replacement array and returns either the value at the same index or a default value if the value is not found.
What does this code snippet return?
The displayvalue() function matches a given value with an array and returns the value at the same index from a replacement array or a default value if not found. In the snippet displayvalue(1, {0, 1, 2}, {'Low', 'Medium', 'High'}, 'Unknown'), the value 1 is matched in the array {0, 1, 2} at index 1. The function then returns the value at index 1 in the array {'Low', 'Medium', 'High'}, which is 'Medium'. Reference: Appian Expression Language Documentation - Functions
Thaddeus
6 months agoCassi
6 months agoKip
6 months agoErasmo
7 months agoOliva
7 months agoQuinn
7 months agoTenesha
7 months agoSylvie
7 months agoAdelaide
7 months agoShantay
8 months agoCarma
8 months agoJames
8 months agoMicheline
8 months agoLawana
8 months agoAlberta
9 months agoLayla
9 months agoBulah
9 months agoTerrilyn
9 months agoMillie
10 months agoMozell
10 months agoMerri
5 months agoNieves
5 months agoKatheryn
5 months agoLenita
8 months agoMarguerita
10 months agoClaudia
10 months agoVilma
10 months agoRicki
11 months ago