Example #1
0
 /** @return boolean, true if Condition Value is True. */
 public boolean isConditionValueTrue() {
   if (conditionString == null) {
     return true;
   }
   if (!areMacrosForConditionEvaluationExpandable()) {
     return false;
   }
   Map<String, String> valueStore = template.getValueStore();
   String processedLValue = ProcessHelper.getValueAfterExpandingMacros(lValue, macros, valueStore);
   String processedRValue = ProcessHelper.getValueAfterExpandingMacros(rValue, macros, valueStore);
   if (operator.equals(Operator.EQUALS)) {
     return processedLValue.equals(processedRValue);
   } else if (operator.equals(Operator.NOT_EQUALS)) {
     return !processedLValue.equals(processedRValue);
   } else {
     return false;
   }
 }