choose()

choose has an arbitrary number of results. The first parameter is an integer which is the index of the parameter that will be returned. For example:

 

choose(4;"A";"B";"C";"D";"E") - returns the fourth parameter after the index: D

 

This example converts the status of participants (encoded as number) into a text:

choose([Status]+1;"regular";"o.o.c.";"DSQ";"DNF";"DNS";"n/a")