evaluate method

bool evaluate (dynamic semantics)

Returns whether the selector matches the given semantics.

The semantics define which variables evaluate to true or false. The parameter can be either an Iterable<String> containing variables that should evaluate to true, or a function bool semantics(String variable) that returns a variable's value.

Implementation

bool evaluate(semantics);