merged _assertFormulaOperatorAndVal() and _assertFormulaOperatorOrVal().