Withineither
Withineither is a relational concept used to express that a value lies within at least one of two specified sets or intervals. The term combines within (containment) with either (one or the other), to denote disjunctive containment. It is used in mathematics, computer science, and constraint systems to simplify conditional checks.
Formally, let A and B be subsets of a universal set U. A value x satisfies withineither(A,B)
In programming, withineither is implemented as a logical disjunction: withineither(x, A, B) = (x ∈ A) || (x ∈ B).
Example: x=0.5 is withineither [0,1] and [2,3]? It's in the first. x=2.5 is in the second. x=1.5
Applications include data validation, rule engines, and search queries. If A and B overlap, withineither reduces