src/Utility/Panel.php
public function evalExpression(array $data) : bool
    {
        $language = new ExpressionLanguage();
        $values = $this->getFieldValues($data);
        $eval = $language->evaluate($this->getExpression(true), $values);

        return $eval;
    }
public function evalExpression(array $data) : bool
    {
        $language = new ExpressionLanguage();
        $values = $this->getFieldValues($data);
        $eval = $language->evaluate($this->getExpression(true), $values);

        return $eval;
    }
public function evalExpression ( array $ data ) : bool { $ language = new ExpressionLanguage ( ) ; $ values = $ this -> getFieldValues ( $ data ) ; $ eval = $ language -> evaluate ( $ this -> getExpression ( true ) , $ values ) ; return $ eval ; }
Evaluate the expression.

@param mixed[] $data to get the values for placeholders
@return bool True if it matches, false otherwise.
Evaluate the expression .