Repository navigation
Added ifthen() policy function - #6441
Draft
nickanderson wants to merge 1 commit into
Draft
nickanderson wants to merge 1 commit into
nickanderson wants to merge 1 commit into
Conversation
nickanderson
marked this pull request as draft
October 26, 2026 13:08
ifthen() takes pairs of a class expression and a value and returns the value of the first true class expression, like ifelse() without the fall-through value. If no class expression is true, it returns nothing and the promise using it doesn't define the variable, so there is no need for a placeholder default. Unlike 3-argument ifelse(), it is skipped for now while any argument contains an unresolved variable, like other functions. Ticket: ENT-14719 Changelog: Title
nickanderson
force-pushed
the
ENT-14719/master
branch
from
October 26, 2026 14:01
3f37dff to
1a40254
Compare
|
Thank you for submitting a PR! Maybe @craigcomstock can review this? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ifthen() takes pairs of a class expression and a value and returns the
value of the first true class expression, like ifelse() without the
fall-through value. If no class expression is true, it returns nothing
and the promise using it doesn't define the variable, so there is no
need for a placeholder default.
Unlike 3-argument ifelse(), it is skipped for now while any argument
contains an unresolved variable, like other functions.
Ticket: ENT-14719
Changelog: Title