or4All function
Requirements.LogicalFunctions.or4All
· source
4-valued logic 'or' over a Property vector (the empty vector gives Undefined, the neutral element)
Extends Requirements.Interfaces.PropertyFunction
Syntax
result = or4All(p);
Description
The four-valued or4 folded over the elements of Property vector p, seeded with Undefined, the neutral element: the result is Satisfied if at least one element is Satisfied; else Undecided if at least one element is Undecided; else Violated if at least one element is Violated; else Undefined (every element Undefined, or the empty vector). Elements that are Undefined do not affect the result.
Revisions
| Date | Description |
|---|---|
| Sept. 15, 2026 | Added with the fourth value Undefined (H. Tummescheit, Model Based Innovation LLC) |
Inputs
| Name | Type | Description |
|---|---|---|
p[…] input | Property | Property vector |
Outputs
| Name | Type | Description |
|---|---|---|
result output | Property | = p[1] or4 p[2] or4 ... or4 p[size(p,1)]; Undefined for the empty vector |