Skip to content

iif implementation doesn't support 1 or 2 parameter#14234

Open
ChristopherHX wants to merge 1 commit intoMicrosoftDocs:mainfrom
ChristopherHX:patch-1
Open

iif implementation doesn't support 1 or 2 parameter#14234
ChristopherHX wants to merge 1 commit intoMicrosoftDocs:mainfrom
ChristopherHX:patch-1

Conversation

@ChristopherHX
Copy link
Copy Markdown

Adjust docs to match implementation assuming this is not autogenerated

steps:
- ${{ if iif(False, False) }}:
  - bash: ok

is a syntax error for the validate pipeline feature

After I saw the documentation, I thought that 1 or 2 parameters are valid as well and no it didn't work

Adjust docs to match implementation
```
steps:
- ${{ if iif(False, False) }}:
  - bash: ok
```
is a syntax error for the validate pipeline feature
@prmerger-automator
Copy link
Copy Markdown
Contributor

@ChristopherHX : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Court72
Copy link
Copy Markdown
Contributor

Court72 commented Feb 10, 2025

@juliakm

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@ktoliver
Copy link
Copy Markdown
Contributor

ktoliver commented Nov 7, 2025

@juliakm - Could you review this proposed update to your article and enter #sign-off in a comment if it's ready to merge?

Thanks!

@juliakm
Copy link
Copy Markdown
Collaborator

juliakm commented Apr 21, 2026

#reassign:ramiMSFT

@prmerger-automator prmerger-automator Bot assigned ramiMSFT and juliakm and unassigned juliakm Apr 21, 2026
@prmerger-automator
Copy link
Copy Markdown
Contributor

@ChristopherHX : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@juliakm
Copy link
Copy Markdown
Collaborator

juliakm commented Apr 21, 2026

#assign-reviewer:ramiMSFT

@prmerger-automator prmerger-automator Bot requested a review from ramiMSFT April 21, 2026 14:52
@v-dirichards
Copy link
Copy Markdown
Contributor

@ramiMSFT Can you review this old PR and determine whether it needs to be closed or merged?

IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge. If the changes no longer apply, add an explanation and a #please-close comment to close the PR.

@MicrosoftDocs/public-repo-pr-review-team

@v-dirichards v-dirichards requested a review from Copilot April 21, 2026 20:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Azure Pipelines expression documentation to reflect the actual iif function signature (3 parameters required), preventing users from assuming 1–2 parameters are valid.

Changes:

  • Corrected the documented minimum parameter count for iif from 1 to 3.

### 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants