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
9 hours agoCassi
6 days agoKip
11 days agoErasmo
16 days agoOliva
21 days agoQuinn
26 days agoTenesha
1 month agoSylvie
1 month agoAdelaide
1 month agoShantay
2 months agoCarma
2 months agoJames
2 months agoMicheline
2 months agoLawana
2 months agoAlberta
3 months agoLayla
3 months agoBulah
3 months agoTerrilyn
3 months agoMillie
4 months agoMozell
4 months agoLenita
2 months agoMarguerita
4 months agoClaudia
4 months agoVilma
4 months agoRicki
5 months ago