setvar: needs review

This commit is contained in:
Felipe Zimmerle
2016-11-23 09:29:12 -03:00
parent c339194c02
commit eecb90cfd0
7 changed files with 53 additions and 23 deletions

View File

@@ -75,6 +75,17 @@ bool Operator::debug(Transaction *transaction, int x, std::string a) {
}
bool Operator::evaluateInternal(Transaction *transaction,
Rule *rule, const std::string& a) {
bool res = evaluate(transaction, rule, a);
if (m_negation) {
return !res;
}
return res;
}
bool Operator::evaluateInternal(Transaction *transaction,
const std::string& a) {
bool res = evaluate(transaction, a);