Value ref
selectChoose a numeric value using a stateless predicate.
True reads then, false reads else; unknown returns typed absence, never either branch. Only the chosen branch's absence propagates. Supports compare, range, in_set, not, all_of, any_of and always_true. Memoryful predicates are refused. Window aggregates, live_position and entry_bar values are supported in predicates and branches. Position-dependent values require a position-scoped consumer such as an exit, stop, target or trail. Bind symbol and resolution on children. Usable in arithmetic, offset, rolling statistics, window aggregate sources, sizing, existing stop/target refs and named values, under each consumer's restrictions. History and warmup take the maximum over predicate operands and both branches. Equal branch dimensions or a literal preserve units; known mismatch warns and yields unknown dimension.
Backing types
SelectValueRef
Required fields
elsereqanyOf (2 variants)-thenreqanyOf (2 variants)-whenreqSelectPredicate-Optional fields
kindstring-Backing types
The IR ValueRef classes this builder field resolves to.