or4All function

Requirements.LogicalFunctions.or4All  · source

Icon of or4All

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

DateDescription
Sept. 15, 2026Added with the fourth value Undefined (H. Tummescheit, Model Based Innovation LLC)

Inputs

NameTypeDescription
p[…] inputPropertyProperty vector

Outputs

NameTypeDescription
result outputProperty= p[1] or4 p[2] or4 ... or4 p[size(p,1)]; Undefined for the empty vector