-
Notifications
You must be signed in to change notification settings - Fork 0
If and If-Else #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
If and If-Else #120
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "variant": "NODE", | ||
| "identifier": "NODE", | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Node" | ||
| } | ||
| ], | ||
| "rules": [], | ||
| "genericKeys": [] | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,10 @@ | |
| 16.10.2025 | ||
|
|
||
| ## Renamed | ||
| break -> stop | ||
| break -> stop | ||
|
|
||
| 01.11.2025 | ||
|
|
||
| ## Added | ||
| - if | ||
| - if-else | ||
77 changes: 77 additions & 0 deletions
77
definitions/standard/runtime_definition/control/std_control_if.proto.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| { | ||
| "runtimeName": "std::control::if", | ||
| "runtimeParameterDefinitions": [ | ||
| { | ||
| "dataTypeIdentifier": { | ||
| "dataTypeIdentifier": "BOOLEAN" | ||
| }, | ||
| "runtimeName": "condition", | ||
| "defaultValue": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Condition" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Boolean condition to evaluate." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Specifies the condition that determines whether the provided node should be executed. If this condition evaluates to true, the execution proceeds with the node defined in the second parameter." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "dataTypeIdentifier": { | ||
| "dataTypeIdentifier": "NODE" | ||
| }, | ||
| "runtimeName": "thenNode", | ||
| "defaultValue": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Then Node" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Node that will be executed if the condition is true." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Defines the node to be executed when the condition evaluates to true. If the condition is false, this node will be skipped and execution will continue with the next element in the flow." | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "returnTypeIdentifier": null, | ||
| "throwsError": false, | ||
| "genericKeys": [], | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "If" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Executes the specified node if the condition evaluates to true." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "The 'If' node evaluates a boolean condition and, if it is true, executes the provided node. If the condition is false, execution continues without running the node. This behavior corresponds to a standard 'if' statement in programming languages." | ||
| } | ||
| ], | ||
| "deprecationMessage": [] | ||
| } |
102 changes: 102 additions & 0 deletions
102
definitions/standard/runtime_definition/control/std_control_if_else.proto.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| { | ||
| "runtimeName": "std::control::if_else", | ||
| "runtimeParameterDefinitions": [ | ||
| { | ||
| "dataTypeIdentifier": { | ||
| "dataTypeIdentifier": "BOOLEAN" | ||
| }, | ||
| "runtimeName": "condition", | ||
| "defaultValue": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Condition" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Boolean condition to evaluate." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Determines which branch to execute. If true the Then Node runs otherwise the Else Node runs." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "dataTypeIdentifier": { | ||
| "dataTypeIdentifier": "NODE" | ||
| }, | ||
| "runtimeName": "then_node", | ||
| "defaultValue": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Then Node" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Node to execute when the condition is true." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Defines the node that runs if the condition evaluates to true." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "dataTypeIdentifier": { | ||
| "dataTypeIdentifier": "NODE" | ||
| }, | ||
| "runtimeName": "else_node", | ||
| "defaultValue": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Else Node" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Node to execute when the condition is false." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Defines the node that runs if the condition evaluates to false." | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "returnTypeIdentifier": null, | ||
| "throwsError": false, | ||
| "genericKeys": [], | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "If-Else" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Evaluates a condition and executes either the Then Node or the Else Node." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Evaluates a boolean condition. If true, executes the Then Node; otherwise, executes the Else Node. Mirrors a standard 'if/else' control structure in programming languages." | ||
| } | ||
| ], | ||
| "deprecationMessage": [] | ||
| } |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name it RUNNABLE