feat: add ifNot condition pattern for negative condition checks#584
Closed
Conversation
|
This was referenced Jan 8, 2026
Contributor
Author
|
View your CI Pipeline Execution ↗ for commit 1889d80
☁️ Nx Cloud last updated this comment at |
06596b7 to
d2515c8
Compare
238c72d to
bb09b62
Compare
d2515c8 to
6eea9d1
Compare
6eea9d1 to
d3c1db7
Compare
d3c1db7 to
4354fcb
Compare
This was referenced Jan 9, 2026
bb09b62 to
6be7361
Compare
4354fcb to
3f4ff52
Compare
3f4ff52 to
ce06b31
Compare
6be7361 to
7a9134a
Compare
7a9134a to
dfe0535
Compare
ce06b31 to
1889d80
Compare
Contributor
Author
|
Folded into #572 (squashed conditional steps PR) |
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.

Add ifNot Condition Pattern for Step Execution Control
This PR adds a new
ifNotcondition pattern to complement the existingifpattern for step execution control. This enables more flexible conditional execution of workflow steps.Key changes:
condition_not_patterncolumn to thepgflow.stepstablepgflow.add_step()function to accept the new parametercascade_resolve_conditions()to support both patterns with AND semanticsThe
ifNotpattern works as follows:if, both conditions must pass (AND semantics)ifon one step andifNoton anotherThis feature enables more expressive workflow definitions, such as:
The TypeScript DSL has been updated to support the new
ifNotoption with proper type checking.