Skip to main content

eval_when

Function eval_when 

Source
pub fn eval_when(
    when: Option<&Value>,
    props: &Map<String, Value>,
    state: &State,
) -> bool
Expand description

UI-10: a live’s params evaluated over the scope — a { "expr" } value a Rhai expression over the props and state (its reads of state tracked, so a binding around this re-runs when they change), any other value as written. FRAME-16: whether a live’s when lets it ask — none, or a value (read from the scope when it is { "expr" }) that is not false, null, empty or 0.