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
4 months agoCassi
5 months agoKip
5 months agoErasmo
5 months agoOliva
5 months agoQuinn
5 months agoTenesha
5 months agoSylvie
6 months agoAdelaide
6 months agoShantay
6 months agoCarma
6 months agoJames
6 months agoMicheline
6 months agoLawana
7 months agoAlberta
7 months agoLayla
7 months agoBulah
7 months agoTerrilyn
8 months agoMillie
8 months agoMozell
8 months agoMerri
3 months agoNieves
4 months agoKatheryn
4 months agoLenita
7 months agoMarguerita
8 months agoClaudia
9 months agoVilma
9 months agoRicki
9 months ago