diff --git a/definitions/standard/data_type/node/runnable.proto.json b/definitions/standard/data_type/node/runnable.proto.json new file mode 100644 index 0000000..e87d0f2 --- /dev/null +++ b/definitions/standard/data_type/node/runnable.proto.json @@ -0,0 +1,12 @@ +{ + "variant": "NODE", + "identifier": "RUNNABLE", + "name": [ + { + "code": "en-US", + "content": "Node" + } + ], + "rules": [], + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/control/control-audit.md b/definitions/standard/runtime_definition/control/control-audit.md index ab78d8f..40c6d6d 100644 --- a/definitions/standard/runtime_definition/control/control-audit.md +++ b/definitions/standard/runtime_definition/control/control-audit.md @@ -11,4 +11,10 @@ 16.10.2025 ## Renamed -break -> stop \ No newline at end of file +break -> stop + +01.11.2025 + +## Added +- if +- if-else \ No newline at end of file diff --git a/definitions/standard/runtime_definition/control/std_control_if.proto.json b/definitions/standard/runtime_definition/control/std_control_if.proto.json new file mode 100644 index 0000000..1ef0a78 --- /dev/null +++ b/definitions/standard/runtime_definition/control/std_control_if.proto.json @@ -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": [] +} diff --git a/definitions/standard/runtime_definition/control/std_control_if_else.proto.json b/definitions/standard/runtime_definition/control/std_control_if_else.proto.json new file mode 100644 index 0000000..25b78fe --- /dev/null +++ b/definitions/standard/runtime_definition/control/std_control_if_else.proto.json @@ -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": [] +}