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