subtract
Short summary
overwrites the content of this set with the set difference of this set and the given set Set difference: Elements present in one set but not in the other.
Example: Set A = 4 Set B = 4
Set difference (A - B): 2 Set difference (B - A): 6
Return: SingleExecutionResult.SUCCESS: if insert could made, error if object was already in the tree,
```SingleExecutionResult.ABORTED``: foreign set wasn't valid
- Return type: CNM_ReturnTypes.SingleExecutionResult
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| set | ISet | foreign set to construct substraction | input |
Code
Declaration
METHOD subtract :CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*foreign set to construct substraction*)
set :ISet;
END_VAR