Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/pipelines/process/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc currently states the arity as separate min/max bullets, but doesn't explicitly say that iif requires exactly three arguments (condition, trueValue, falseValue). Consider rewording to make the restriction unambiguous (e.g., 'Exactly 3 parameters') to reduce future confusion and avoid readers interpreting this as a general min/max guideline rather than a strict requirement.

Suggested change
* Min parameters: 3. Max parameters: 3
* Exactly 3 parameters: condition, trueValue, falseValue

Copilot uses AI. Check for mistakes.
* 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
Expand Down