Skip to content

When ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand. No examples yet — the crosswalk is the reason it has a page.

Conditional/restriction value. When(e, cond) evaluates to: - e when cond evaluates to True - the absence marker of the type of e when cond evaluates to False (the "masking rule"): NaN for a number, Missing — the position-preserving absent datum, the answer a selection with no selected branch gives — for a point, a list, a string or a value not provably numeric; consumers like 2D plotters skip masked points - When(e, cond_simplified) when cond is indeterminate (holds) Stacked restrictions canonicalize: When(When(e, c1), c2) → When(e, And(c1, c2)). Compiles to ternary (cond) ? (e) : NaN in JS and GLSL.

When(expression, boolean) -> anyas compute-engine declares it
Typed signatures
TypePackageApplies
(expression, boolean) -> anycompute-enginealways

Domain: Compute engine

About