๐๏ธ Function Reference Overview
The following categories contain all operators and functions available for authoring expressions in rules. Some functions may be listed in multiple categories.
๐๏ธ Reserved Words
| Reserved Word | Description |
๐๏ธ All Functions
All functions listed alphabetically.
๐๏ธ Operators
All Operators
๐๏ธ Math Functions
Perform arithmetic operations.
๐๏ธ String Functions
Perform string manipulation and formatting.
๐๏ธ Collection Functions
Return values from a collection based on a filter.
๐๏ธ Comparison Functions
Return values based on logical operations.
๐๏ธ Conversion Functions
Perform datatype conversions.
๐๏ธ Date Functions
Perform date parsing and math operations.
๐๏ธ EngineValues Functions
| EngineValues Function | Description |
๐๏ธ Logical Functions
| Logical Function | Description |
๐๏ธ Lookup Functions
Returns the value from a table for the first row that satisfies the filter.
๐๏ธ Aggregate Functions
Operate across collection items to return aggregate values.
๐๏ธ Mid Function
The Mid function returns a substring of a string.
๐๏ธ ToValueList Function
Constructs value list inline from args.
๐๏ธ IsInValueList Function
Returns true if the given value is contained in the specified value list, otherwise returns false.
๐๏ธ GetFieldValueList Function
Gets specified value list by field name.
๐๏ธ ValueListLookup Function
Looks up a display name by value from a value list. If the value is not in the value list, null is returned unless a default value is specified.
๐๏ธ Lookup Function List
Return values from data sets when filtering criteria is matched.
๐๏ธ Or Function
Returns the logical OR of one or more expressions.
๐๏ธ Or Operator
Returns the logical OR of one or more expressions.
๐๏ธ And Operator
Returns the logical AND of one or more expressions.
๐๏ธ And Function
Returns the logical AND of one or more expressions.
๐๏ธ GetXPath Function
Returns xpath of the element.
๐๏ธ GetIndex Function
Returns the current index of a collection member in its parent collection. If it exists in multiple collections, only its index in the first authored collection is returned.
๐๏ธ GetEntityId Function
Returns the EntitiyID for the element.
๐๏ธ GetElementId Function
Returns the element id of the element.
๐๏ธ GetDefault Function
Returns the default value of the element.
๐๏ธ Safe Function
Returns the value of the supplied expression or returns the default value if the expression produces an error.
๐๏ธ IsInvalid Function
Returns true if the element is invalid.
๐๏ธ AddYears Function
The AddYears function adds a specified number of years to a DateTime value.
๐๏ธ BuildDate Function
The BuildDate function returns a date from a specified year, month, and day.
๐๏ธ AddSeconds Function
The AddSeconds function adds a specified number of seconds to a DateTime value.
๐๏ธ AddMonths Function
The AddMonths function adds a specified number of months to a DateTime value.
๐๏ธ YearDiff Function
The YearDiff function returns the number of years between two Date values.
๐๏ธ ToTime Function
The ToTime function returns a time based on source parameters. The date portion is 1/2/0001.
๐๏ธ Now Function
The Now function returns the current date and time in the local time zone, as of the start of rule processing.
๐๏ธ MonthDiff Function
The MonthDiff function returns the number of months between two Date values.
๐๏ธ MinuteDiff Function
The MinuteDiff function returns the number of minutes between two DateTime values.
๐๏ธ Minute Function
The Minute function returns the minute of the hour for a given DateTime (0 to 59).
๐๏ธ MillisecondDiff Function
The MillisecondDiff function returns the number of milliseconds between two DateTime values.
๐๏ธ AddMilliseconds Function
The AddMilliseconds function adds a specified number of milliseconds to a DateTime value.
๐๏ธ Millisecond Function
The Millisecond function returns the milliseconds for a given DateTime (0 to 999).
๐๏ธ IsWeekday Function
The IsWeekday function returns true if a given DateTime is not a Saturday or Sunday.
๐๏ธ IsUnspecifiedDateTime Function
Returns true if the expression is a valid unspecified kind datetime.
๐๏ธ IsLocalDateTime Function
Returns true if the expression is a valid Local kind datetime.
๐๏ธ IsDate Function
The IsDate function determines if an expression is a valid Date (or a DateTime with a zero time offset).
๐๏ธ HourDiff Function
The HourDiff function returns the number of hours between two DateTime values.
๐๏ธ AddHours Function
The AddHours function adds a specified number of hours to a DateTime value.
๐๏ธ GetUtcDateTime Function
Returns a datetime value having UTC kind.
๐๏ธ GetUnspecifiedDateTime Function
Returns a datetime value having an Unspecified kind.
๐๏ธ GetLocalDateTime Function
Returns a datetime value having Local kind.
๐๏ธ DaysInYear Function
Returns the number of days in the year.
๐๏ธ DaysInMonth Function
The DaysInMonth function returns the number of days in the month.
๐๏ธ DayOfYear Function
Syntax 1
๐๏ธ DayOfWeek Function
Syntax 1
๐๏ธ Day Function
Returns the day of the month for a given Date or DateTime.
๐๏ธ ToString Function
The ToString function converts an expression to a string value.
๐๏ธ ToNumber Function
The ToNumber function converts an expression to a numeric value.
๐๏ธ ToList Function
Returns a list object from a collection.
๐๏ธ ToJson Function
Returns the JSON for an Entity or Entity Field.
๐๏ธ ToInt Function
The ToInt function converts an expression to an integer value.
๐๏ธ ToInnerXml Function
Returns the inner xml (does not include the outer element) for an Entity or Entity Field.
๐๏ธ ToDateTime Function
The ToDateTime function converts an expression to a DateTime value.
๐๏ธ ToXml Function
Returns the xml for an Entity or Entity Field.
๐๏ธ IfCase Function
The IfCase function compares a test value against a list of values, returning the result from the first matching pair.
๐๏ธ If Function
The If function returns one of two values, depending on a given condition.
๐๏ธ GreaterThanOrEqual Operator
Returns true if the first expression is greater than or equal to the second expression.
๐๏ธ GreaterThan Operator
Returns true if the first expression is greater than the second expression.
๐๏ธ EqualTo Operator
Returns true if two expressions are equal.
๐๏ธ AnyAreTrue Function
Returns true if any of the provided conditions are true. Otherwise false.
๐๏ธ Smallest Function
Returns the smallest value from a list of values.
๐๏ธ AnyAreFalse Function
The AnyAreFalse function returns true if any of the provided conditions is false. Otherwise false.
๐๏ธ NumberOfTrue Function
The NumberOfTrue function returns the number of provided conditions that evaluate as true.
๐๏ธ NumberOfFalse Function
The NumberOfFalse function returns the number of provided conditions that evaluate as false.
๐๏ธ NotEqualTo Operator (<>)
Return true if two expressions are not equal.
๐๏ธ LessThanOrEqual Operator
Returns true if the first expression is less than or equal to the second expression.
๐๏ธ AllAreTrue Function
Returns true if all of the provided conditions are true. Otherwise false.
๐๏ธ Largest Function
Returns the largest value in a list of values.
๐๏ธ IsNull Function
The IsNull function returns true if a field is null.
๐๏ธ IsClassification Function
Returns true the given field meets the criteria to belong to the given classification.
๐๏ธ IfChain Function
The IfChain function returns the return value from the first true condition in a list.
๐๏ธ GetLast Function
The GetLast function returns the last collection member that satisfies a given filter expression.
๐๏ธ CurrentContext Function
Returns the value of a field within the context of current expression.
๐๏ธ Current Function
Returns the value of a field within the context of current expression.
๐๏ธ Count Function
The Count function returns the number of members in a collection.
๐๏ธ CollectionLookup Function
The CollectionLooup function returns the value of a field or expression for the first collection member that satisfies a given filter expression.
๐๏ธ Average Function
Returns the average of a specified field or expression across a collection.
๐๏ธ Sum Function
Returns the sum of a specified member or expression across a collection.
๐๏ธ OuterContext Function (context)
Returns the value of a field within the outer context of an aggregate expression.
๐๏ธ OuterContext Function
Returns the value of a field within the outer context of an aggregate expression.
๐๏ธ Min Function
Returns smallest value of a member field or expression across a collection.
๐๏ธ Max Function
Returns largest value of a member field or expression across a collection.
๐๏ธ GetLastValue Function
Returns the specified field value of last member of collection which can be sorted and filtered. In case of failed lookup, a default value must be specified.
๐๏ธ Average Function (Average)
Returns the average of a specified field or expression across a collection.
๐๏ธ Length Function
Returns the length of a string.
๐๏ธ JsonLookup Function
The JsonLookup function returns the JSON of the first property or array that matches a given search path. Does not support retrieving an array of primitive values.
๐๏ธ IsWildcardMatch Function
Determines if an expression matches an DOS-style wildcard expression.
๐๏ธ IsWeekend Function
Returns true if the given date is a Saturday or Sunday.
๐๏ธ IsValid Function
Returns true if the element is valid.
๐๏ธ IsUtcDateTime Function
Returns true if the expression is a valid UTC kind datetime.
๐๏ธ IsNumeric Function
Returns true if a value is or can be converted to a number without error.
๐๏ธ IsNullOrEmpty Function
The IsNullOrEmpty function returns true if a field is null or empty.
๐๏ธ IsNotNullOrEmpty Function
The IsNotNullOrEmpty function returns true if a field is not null or empty.
๐๏ธ IsMatch Function
Determines if a given value is found in a list of values.
๐๏ธ AddWeekdays Function
The AddWeekdays function adds a specified number of weekdays to a DateTime value.
๐๏ธ IsLeapYear Function
The IsLeapYear function returns true if the year is a leap year.
๐๏ธ IsDateTime Function
The IsDateTime function determines if an expression is a valid DateTime.
๐๏ธ IsBetween Function
Returns true if a value is equal to or between two boundary values.
๐๏ธ InvokeEntityMethod Function
Returns the value (if any) of an instance method call on (an defined by) an entity.
๐๏ธ Hour Function
The Hour function returns the hour of the day for a given DateTime (0 to 23).
๐๏ธ HasWhitespace Function
The HasWhitespace function returns true if a given string starts with, ends with, or contains duplicate whitespace.
๐๏ธ GetValueList Function
Gets specified value list by DataElement name.
๐๏ธ GetName Function
Returns the name of the element.
๐๏ธ GetMemberValue Function
The GetMemberValue function returns the specified field value of the first collection member that satisfies a given filter criteria.
๐๏ธ GetMemberByIndex Function
Returns the member at an index in a collection which can be ordered and filtered using filter expression.
๐๏ธ AddMinutes Function
The AddMinutes function adds a specified number of minutes to a DateTime value.
๐๏ธ GetEntityName Function
Returns the name of the entity.
๐๏ธ GetAttribute Function
Returns the attribute value for an element as specified by the engine attribute for it.
๐๏ธ FV Function
Returns the end-of-period future value for a series of payments given the interest rate, number of periods, payment amount, and initial principal
๐๏ธ Exp Function
The Exp function returns e raised to a given power.
๐๏ธ Eval Function
Returns the value of evaluating the specified value as an expression.
๐๏ธ EscapeJson Function
The EscapeJson function replaces invalid JSON characters (backspace, form feed, newline, carriage return, tab, double quote, and backslash) in a string with their valid equivalent.
๐๏ธ EndsWith Function
Determines if a text string or expression ends with another text string or expression.
๐๏ธ Divide Operator
Divides the value of one numeric expression by another.
๐๏ธ DayDiff Function
The DayDiff function returns the number of days between two Date values.
๐๏ธ AddDays Function
The AddDays function adds a specified number of days to a DateTime value.
๐๏ธ Chr Function
Returns the character associated with the specified character code.
๐๏ธ Year Function
Returns the year for a given Date or DateTime.
๐๏ธ XmlLookup Function
The XmlLookup function returns the value referenced by an XPath from an XML document or string.
๐๏ธ WeekdayDiff Function
The WeekdayDiff function returns the number of weekdays between two Date values.
๐๏ธ TrimWhitespace Function
The TrimWhitespace function removes leading, trailing, and duplicate whitespace from a string.
๐๏ธ ToUpper Function
The ToUpper function returns a copy of a string, converted to all upper case.
๐๏ธ ToLower Function
The ToLower function returns a copy of a string, converted to all lower case.
๐๏ธ BankRound Function
Returns the number rounded to the number of decimal places using the rules of bankers rounding.
๐๏ธ Today Function
Returns the current date as of the start of rule processing.
๐๏ธ ToDate Function
The ToDate function converts an expression to a Date value.
๐๏ธ ToBool Function
The ToBool function converts an expression to a boolean value.
๐๏ธ TableLookup Function
Returns the value from a table for the first row that satisfies the field matching criteria.
๐๏ธ Sqrt Function
The Sqrt function returns the square root of a number.
๐๏ธ SecondDiff Function
The SecondDiff function returns the number of seconds between two DateTime values.
๐๏ธ Second Function
The Second function returns the seconds for a given DateTime (0 to 59).
๐๏ธ Right Function
The Right function returns a string containing a specified number of characters from the right side of a string.
๐๏ธ Rate Function
Returns the end-of-period interest rate which must be applied to the present value in order to arrive at the future value when compounded over the given number of periods
๐๏ธ Random Function
Returns a random integer between the specified minimum and maximum values.
๐๏ธ QueryToList Function
Gets value list from Query.
๐๏ธ PV Function
Returns the end-of-period present value for a series of future payments given, the interest rate, the number of periods, the payment amount, and the future value remaining after all payments are made
๐๏ธ ProperCase Function
The ProperCase function returns a copy of a string with the first letter of every word capitalized and the rest of the letters in lower case.
๐๏ธ PPMT Function
Returns the end-of-period principal payment for given present value at specified rate for specified period.
๐๏ธ Power Operator
Takes the value of one numeric expression to the power of the exponent value.
๐๏ธ PMT Function
Returns the end-of-period payment for given present value at specified rate for specified period. Note: The result is not negated as a debt. (e.g. PMT(0, 10, 10000) = 1000.00 not -1000.00)
๐๏ธ Plus Operator
Adds the value of one numeric expression to another.
๐๏ธ Percent Function
The Percent function returns `(value * percent) / 100.0`.
๐๏ธ NumIntDigits Function
Returns the number of digits in a given number that appear to the left of the decimal point, not counting preceding zeros.
๐๏ธ NumFracDigits Function
Returns the number of digits in a given number that appear to the right of the decimal point, not counting trailing zeros.
๐๏ธ NumDigits Function
Returns the number of digits in a given number, not counting trailing zeros to the right of the decimal point nor any leading zeros.
๐๏ธ Not Function
The Not function performs logical negation.
๐๏ธ NoneAreTrue Function
The NoneAreTrue function returns true if none of the provided conditions is true. Otherwise false.
๐๏ธ NoneAreFalse Function
The NoneAreFalse function returns true if none of the provided conditions is false. Otherwise false.
๐๏ธ Month Function
Returns the month for a given Date or DateTime.
๐๏ธ Minus Operator
Subtracts the value of one numeric expression from another.
๐๏ธ AllAreFalse Function
The AllAreFalse function returns true if all of the provided conditions is false. Otherwise false.
๐๏ธ Abs Function
Returns the absolute value of a numeric expression.
๐๏ธ Instr Function
The Instr function returns the position of the first occurrence of one string within another string.
๐๏ธ Format Function
The Format function formats a numeric or date expression.
๐๏ธ EscapeXml Function
The EscapeXml function replaces invalid XML characters (ampersand, less than, greater than, quote, and apostrophe) in a string with their valid XML equivalent.
๐๏ธ Contains Function
Determines if a text string or expression contains another text string or expression.
๐๏ธ Concat Operator
Generates a string concatenation of two or more expressions.
๐๏ธ Trim Function
The Trim function returns a copy of a string with all leading and trailing spaces removed.
๐๏ธ StartsWith Function
Determines if a text string or expression starts with another text string or expression.
๐๏ธ Concat Function
Generates a string concatenation of two or more expressions.
๐๏ธ Replace Function
The Replace function replaces all occurrences of a substring with another string.
๐๏ธ RegexSelect Function
Returns first match of regular expression pattern going left to right.
๐๏ธ RegexReplace Function
Replaces all occurrences of a Regular Expression pattern with a string.
๐๏ธ Length Function (len)
Returns the length of a string.
๐๏ธ Left Function
The Left function returns a string containing a specified number of characters from the left side of a string.
๐๏ธ IsRegexMatch Function
Determines if an expression matches a Regular Expression pattern.
๐๏ธ LessThan Operator
Returns true if the first expression is less than the second expression.
๐๏ธ Xor Function
The Xor function returns the logical exclusive OR of one or more expressions. The Xor operator requires two expressions.
๐๏ธ Xor Operator
The Xor function returns the logical exclusive OR of one or more expressions. The Xor operator requires two expressions.
๐๏ธ IPMT Function
Returns the end-of-period interest payment for given present value at specified rate for specified period.
๐๏ธ RoundUp Function
The RoundUp function rounds a number up to a specified number of decimal places.
๐๏ธ RoundDown Function
The RoundDown function rounds a number down to a specified number of decimal places.
๐๏ธ Round Function
The Round function rounds a number to a specified number of decimal places.
๐๏ธ Multiply Operator
Multiplies the value of one numeric expression by another.
๐๏ธ Mod Function
Divides two numbers and returns only the remainder.
๐๏ธ Log Function
Returns the natural (base e) logarithm of a specified number.
๐๏ธ GetFirstValue Function
Returns the specified field value of first member of collection which can be sorted and filtered. In case of failed lookup, a default value must be specified.
๐๏ธ GetFirst Function
The GetFirst function returns the first collection member that satisfies a given filter expression.
๐๏ธ GetMemberValueByIndex Function
Returns the specified field value of member at an index in collection which can be ordered and filtered using filter expression.
๐๏ธ GetMember Function
Returns the first member that matches the filter criteria.