'XPath Case/IfElse function

I need to code a long Case function, is there such a function in XPath?

My code should look like that:

Case(Country, 
'USA', NY, 
'Mexico', MXC, 
'Canada', Quebec
...)

Should I instead use an IfElse function?

Thanks a lot! Benji



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source