mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 01:06:11 +00:00
Debug: expression value
This commit is contained in:
parent
8fbd4f6b2b
commit
bbed892773
1 changed files with 4 additions and 2 deletions
|
@ -43,6 +43,7 @@ import androidx.room.PrimaryKey;
|
||||||
|
|
||||||
import com.ezylang.evalex.EvaluationException;
|
import com.ezylang.evalex.EvaluationException;
|
||||||
import com.ezylang.evalex.Expression;
|
import com.ezylang.evalex.Expression;
|
||||||
|
import com.ezylang.evalex.data.EvaluationValue;
|
||||||
import com.ezylang.evalex.parser.ParseException;
|
import com.ezylang.evalex.parser.ParseException;
|
||||||
|
|
||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
|
@ -496,8 +497,9 @@ public class EntityRule {
|
||||||
throw new IllegalArgumentException(context.getString(R.string.title_rule_no_headers));
|
throw new IllegalArgumentException(context.getString(R.string.title_rule_no_headers));
|
||||||
|
|
||||||
Log.i("EXPR evaluating='" + jcondition.getString("expression") + "'");
|
Log.i("EXPR evaluating='" + jcondition.getString("expression") + "'");
|
||||||
Boolean result = expression.evaluate().getBooleanValue();
|
EvaluationValue val = expression.evaluate();
|
||||||
Log.i("EXPR evaluated=" + result);
|
Boolean result = val.getBooleanValue();
|
||||||
|
Log.i("EXPR evaluated=" + result + " value=" + val);
|
||||||
if (!Boolean.TRUE.equals(result))
|
if (!Boolean.TRUE.equals(result))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue