weasel API - v0.8.0
    Preparing search index...

    Interface Condition

    Composable visibility predicate with fluent surface. Carries its underlying Rule tree at .rule so the resolver can introspect / share trees with the affordance pipeline and the dispatcher's eligibility filter.

    Callable form cond(ctx) evaluates the tree against ctx. The fluent methods return new Conditions wrapping new trees.

    Chain semantics: strict left-to-right, no precedence. a.and(b).or(c) is (a && b) || c; a.or(b).and(c) is (a || b) && c. Mix .and and .or only when you mean left-to-right evaluation. For grouped disjunction, name the subexpression or use the top-level or(...).

    interface Condition {
        rule: Rule;
        and(other: Rule | Condition): Condition;
        andNot(other: Rule | Condition): Condition;
        or(other: Rule | Condition): Condition;
        orNot(other: Rule | Condition): Condition;
        (ctx: RuleCtx): boolean;
    }
    Index

    Properties

    Methods

    Properties

    rule: Rule

    Methods