Azure DevOps pipeline expression functions enable the creation of powerful Azure DevOps YAML pipelines to achieve various advanced automation needs for build and deployment purposes. This blog explains how to use the if condition with pipeline variable values.
In an Azure DevOps YAML pipeline, a variable if condition can be defined as follow
iif(condition, the_value_returns_when_condition_true, the_value_returns_when_condition_false)