pub fn evaluate_condition( condition: &str, data: &HashMap<String, Value>, ) -> Result<bool, ViewError>
求值条件表达式
PHP 通过 parseCondition 替换简写后,用 eval 执行。 Rust 改为递归下降求值器,支持 ||、&&、!、比较运算符和括号。
parseCondition
eval
||
&&
!