Skip to main content

gate_satisfied

Function gate_satisfied 

Source
pub fn gate_satisfied(condition: &Condition, fired: &[String]) -> bool
Expand description

Evaluate a gate over member triggers that have fired.

The condition’s field names are member ids; a member that has fired is true. Reusing the same Condition shape means (a AND b) OR c over triggers is written and evaluated exactly like a predicate over grains.