QDS Functions and Expressions
Functions and expressions for use in QDS Automatic Variables
Function |
Description |
---|---|
IF (Expr, Num1, Num2, Num3) | Num1 if Expr is TRUE, Num2 if FALSE, Num3 if MAYBE |
IF (Expr, Num1, Num2) | Same as IF(Expr, Num1, Num2, Num2) |
CONCAT(Str1, Str2) | Concatenation of Strings Str1 and Str2 |
SUBSTRING(Str, Skip, Len) | Substring of the string specified |
Length (number of characters) in String | |
Integer portion of numeric value | |
Random integer between minimum and maximum value | |
Rounded value of the function argument | |
Numeric value of the function argument | |
Date value | |
Time value | |
Long date format such as: Tuesday, August 31, 1988 | |
Short date format such as: 08/31/1988 | |
Numeric value of day component | |
Numeric value of month component | |
Numeric value of year component | |
Age | |
Lower bound of numeric value | |
Upper bound of numeric value | |
Midpoint of numeric value, rounding down (same as MIDLOW) | |
Midpoint of numeric value, rounding down | |
Midpoint of numeric value, rounding up | |
Database lookup | |
Database lookup operation that returns message if an error is found | |
Count of Database matches |