From a652f3e32fb2b26a879b568c31533591890c6eb8 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Mon, 10 Feb 2025 17:55:06 +0100 Subject: [PATCH] iif implementation doesn't support 1 or 2 parameter Adjust docs to match implementation ``` steps: - ${{ if iif(False, False) }}: - bash: ok ``` is a syntax error for the validate pipeline feature --- docs/pipelines/process/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pipelines/process/expressions.md b/docs/pipelines/process/expressions.md index c697b1d8fb6..602bf159afc 100644 --- a/docs/pipelines/process/expressions.md +++ b/docs/pipelines/process/expressions.md @@ -332,7 +332,7 @@ Counters are scoped to a pipeline. In other words, its value is incremented for ::: moniker range=">= azure-devops" ### iif * Returns the second parameter if the first parameter evaluates to `True`, and the third parameter otherwise -* Min parameters: 1. Max parameters: 3 +* Min parameters: 3. Max parameters: 3 * The first parameter must be a condition * Example: `iif(eq(variables['Build.Reason'], 'PullRequest'), 'ManagedDevOpsPool', 'Azure Pipelines')` returns 'ManagedDevOpsPool' when the pipeline runs in response to a PR. ::: moniker-end