code: function (oPathValue, iIndex, oResult, bWrapExpression) {
  			var oDate;
  
  			if (oResult.result === "constant") {
  				switch (oResult.category) {
  					case "boolean":
  					case "number":
  						return oResult.value;
  					case "date":
  						oDate = Expression.parseDate(oResult.value);
  						if (!oDate) {
  							Basics.error(Basics.descend(oPathValue, iIndex),
  									"Invalid Date " + oResult.value);
  						}
  						return String(oDate.getTime());
  					case "datetime":
  						oDate = Expression.parseDateTimeOffset(oResult.value);
  						if (!oDate) {
  							Basics.error(Basics.descend(oPathValue, iIndex),
  									"Invalid DateTime " + oResult.value);
  						}
  						return String(oDate.getTime());
  					case "time":
  						return String(Expression.parseTimeOfDay(oResult.value).getTime());
  					// no default
  				}
  			}
  			if (bWrapExpression) {
  				Expression.wrapExpression(oResult);
  			}
  			return Basics.resultToString(oResult, true);
  		}
docs: Formats the result to be an operand for a logical or comparison operator. Handles
  constants accordingly.
  
  @param {object} oPathValue
  path and value information pointing to the parameters array (for a possible error
  message, see above)
  @param {number} iIndex
  the parameter index (for a possible error message)
  @param {object} oResult
  a result object with category
  @param {boolean} bWrapExpression
  if true, wrap an expression in <code>oResult</code> with "()"
  @returns {string}
  the formatted result