How can I achieve below conditions in ADF dynamic expression:
if variable=a then A
if variable=b then B
else C
I'm able to achieve only true or false condition in IF but here I want to verify multiple conditions. No switch case function available in adf dynamic expression.
The if function in Azure Data Factory's (ADF) expression language only supports one true or false condition and no switch function but you just have to nest them. Use the equals function for value comparison. Something like this:
@if(equals(variables('varInput'), 'a'), 'Ax', if(equals(variables('varInput'), 'b'), 'Bx', 'C'))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With