diff --git a/src/variable.cpp b/src/variable.cpp index 9afc4d5c6a..502d4d3312 100644 --- a/src/variable.cpp +++ b/src/variable.cpp @@ -4819,6 +4819,7 @@ double Variable::evaluate_boolean(char *str) error->all(FLERR,"If command boolean can only operate on numbers"); if (value1 >= value2) argstack[nargstack].value = 1.0; else argstack[nargstack].value = 0.0; + } else if (opprevious == AND) { if (flag1 || flag2) error->all(FLERR,"If command boolean can only operate on numbers");