-
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 all commits
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": "RUNNABLE", | ||
| "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 runnable should be executed. If this condition evaluates to true, the execution proceeds with the runnable defined in the second parameter." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "dataTypeIdentifier": { | ||
| "dataTypeIdentifier": "RUNNABLE" | ||
| }, | ||
| "runtimeName": "then_runnable", | ||
| "defaultValue": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Then Runnable" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Runnable to execute when the condition is true." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Defines the runnable that runs if the condition evaluates to true." | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "returnTypeIdentifier": null, | ||
| "throwsError": false, | ||
| "genericKeys": [], | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "If" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Executes the specified runnable if the condition evaluates to true." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "The 'If' runnable evaluates a boolean condition and, if it is true, executes the provided runnable. If the condition is false, execution continues without running the runnable. 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 Runnable runs otherwise the Else Runnable runs." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "dataTypeIdentifier": { | ||
| "dataTypeIdentifier": "RUNNABLE" | ||
| }, | ||
| "runtimeName": "then_runnable", | ||
| "defaultValue": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Then Runnable" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Runnable to execute when the condition is true." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Defines the runnable that runs if the condition evaluates to true." | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "dataTypeIdentifier": { | ||
| "dataTypeIdentifier": "RUNNABLE" | ||
| }, | ||
| "runtimeName": "else_runnable", | ||
| "defaultValue": null, | ||
| "name": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Else Runnable" | ||
| } | ||
| ], | ||
| "description": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Runnable to execute when the condition is false." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Defines the runnable 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 Runnable or the Else Runnable." | ||
| } | ||
| ], | ||
| "documentation": [ | ||
| { | ||
| "code": "en-US", | ||
| "content": "Evaluates a boolean condition. If true, executes the Then Runnable; otherwise, executes the Else Runnable. 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.
Uh oh!
There was an error while loading. Please reload this page.