Conditional variable

Hello everyone, is it possible to create a variable that takes three different values according to three conditions in the same syntax?
Like :
if condition 1 var = a , var = b if condition 2 otherwise var = c
I have seen (Condition ) a:b ? which is limited to two possible values.

You could chain the ternary operators to achieve this, see e.g.

Thank you very much for the orientation.