Operators, Literals, and Functions
This page lists the operators, literals, and functions that can be used in expressions.
Operators
Expression |
Description |
Example |
---|---|---|
|
Adds the value of one numeric expression to another. |
|
|
Finds the difference between two numbers. |
|
|
Multiplies the value of two expressions. |
|
|
Divides the first operand by the second operand. |
|
|
Returns the remainder (modulus) obtained by dividing one numeric expression by another. |
|
|
The bitwise Or operator. Compares each bit of its first operand to the corresponding bit of its second operand. If either bit is 1, the corresponding resulting bit is set to 1. Otherwise, the corresponding resulting bit is set to 0. |
|
|
The bitwise And operator. Compares each bit of its first operand to the corresponding bit of its second operand. If both bits are 1, the corresponding resulting bit is set to 1. Otherwise, the corresponding resulting bit is set to 0. |
|
|
Returns |
|
|
Returns |
|
|
Returns |
|
|
Less than operator. Used to compare expressions. |
|
|
Less than or equal to operator. Used to compare expressions. |
|
|
Greater than or equal to operator. Used to compare expressions. |
|
>
|
Greater than operator. Used to compare expressions. |
|
|
Tests for the existence of a property in an object. |
|
|
Specifies a range to test. Returns true if a value is greater than or equal to the first operand and less than or equal to the second operand; otherwise, returns false. |
|
|
Performs a logical conjunction on two Boolean expressions. |
|
|
Performs a logical disjunction on two Boolean expressions. |
|
|
Performs logical negation on a Boolean expression. |
|
Literals
Literal |
Description |
Example |
---|---|---|
String literals |
String literals must be surrounded by apostrophes ( If a string literal needs to have an apostrophe within it, the apostrophe must be doubled. |
|
Numeric literals |
Numeric literals (numbers) do not require any special punctuation. |
|
Boolean literals |
The Boolean literals are |
|
Date-time literals |
Date-time literals must be surrounded by hash marks ( |
|
|
Represents a null reference, in other words, a reference that does not refer to any object. |
|
Functions
Functions are organized into the following categories:
Aggregate Functions
Function |
Description |
Example |
---|---|---|
|
Evaluates the average of the values in the collection. |
|
|
Returns the number of objects in a collection. |
|
|
Determines whether the object exists in the collection. |
|
|
Returns the maximum expression value in a collection. |
|
|
Returns the minimum expression value in a collection. |
|
|
Returns a single object from the collection. |
|
|
Returns the sum of all the expression values in the collection. |
|
Date-Time Functions
VertiGIS Studio Printing offers additional date-time functions that are not listed in the table. Use the Expression Editor to browse the full list of functions.
Function |
Description |
Example |
---|---|---|
|
Returns a date-time value that is the specified number of days away from the specified |
|
|
Returns a date-time value that is the specified number of hours away from the specified |
|
|
Returns a date-time value that is the specified number of milliseconds away from the specified |
|
|
Returns a date-time value that is the specified number of minutes away from the specified DateTime. |
|
|
Returns a date-time value that is the specified number of months away from the specified |
|
|
Returns a date-time value that is the specified number of seconds away from the specified |
|
|
Returns a date-time value that is the specified number of ticks away from the specified |
|
|
Returns a date-time value that is away from the specified |
|
|
Returns a date-time value that is the specified number of years away from the specified |
|
|
Adjusts the given source date to the specified time zone using Windows time zone identifiers.
The |
|
|
Returns the number of day boundaries between two non-nullable dates. |
|
|
Returns the number of hour boundaries between two non-nullable dates. |
|
|
Returns the number of millisecond boundaries between two non-nullable dates. |
|
|
Returns the number of minute boundaries between two non-nullable dates. |
|
|
Returns the number of month boundaries between two non-nullable dates. |
|
|
Returns the number of second boundaries between two non-nullable dates. |
|
|
Returns the number of tick boundaries between two non-nullable dates. |
|
|
Returns the number of year boundaries between two non-nullable dates. |
|
|
Extracts a date from the defined |
|
|
Extracts a day from the defined |
|
|
Extracts a day of the week from the defined |
|
|
Extracts a day of the year from the defined |
|
|
Extracts an hour from the defined |
|
|
Extracts milliseconds from the defined |
|
|
Extracts minutes from the defined |
|
|
Extracts a month from the defined |
|
|
Extracts seconds from the defined |
|
|
Extracts the time of the day from the defined |
|
|
Extracts a year from the defined |
|
|
Returns |
|
|
Returns |
|
|
Returns |
|
|
Returns a date-time value corresponding to the day after |
|
|
Returns a date-time value corresponding to the first day of the previous week. |
|
|
Returns a date-time value corresponding to the first day of the next month. |
|
|
Returns a date-time value corresponding to the first day of the following week. |
|
|
Returns a date-time value corresponding to the first day of the following year. |
|
|
Returns a date-time value corresponding to the current moment in time. |
|
|
Returns a date-time value corresponding to the first day of the current month. |
|
|
Returns a date-time value corresponding to the first day of the current week. |
|
|
Returns a date-time value corresponding to the first day of the current year. |
|
|
Returns a date-time value corresponding to |
|
|
Returns a date-time value corresponding to |
|
|
Returns a date-time value corresponding to the first day of the week that is after next week. |
|
|
Returns a date-time value corresponding to |
|
|
Returns the current system date and time. |
|
|
Converts a text or numeric representation of a date and time into a DateTime value. This function accepts ISO 8601 pattern strings and integer values representing milliseconds since January 1, 1970, 00:00:00 UTC. |
|
|
Returns the current date. Regardless of the actual time, this function returns midnight of the current date. |
|
|
Returns the current system date and time, expressed as Coordinated Universal Time (UTC). |
|
Logical Functions
Function |
Description |
Example |
---|---|---|
|
Returns either |
|
|
Returns |
|
|
Returns |
|
Math Functions
Function |
Description |
Example |
---|---|---|
|
Returns the absolute, positive value of the given numeric expression. |
|
|
Returns the arccosine of a number (the angle in radians, whose cosine is the given float expression) |
|
|
Returns the arcsine of a number (the angle in radians, whose sine is the given float expression). |
|
|
Returns the arctangent of a number (the angle in radians, whose tangent is the given float expression) |
|
|
Returns the angle whose tangent is the quotient of two specified numbers in radians. |
|
|
Returns an Int64 containing the full product of two specified 32-bit numbers. |
|
|
Returns the smallest integer that is greater than or equal to the given numeric expression. |
|
|
Returns the cosine of the angle defined in radians. |
|
|
Returns the hyperbolic cosine of the angle defined in radians. |
|
|
Returns the exponential value of the given float expression. |
|
|
Returns the largest integer less than or equal to the given numeric expression. |
|
|
Returns the natural logarithm of a specified number. |
|
|
Returns the logarithm of a specified number in a specified Base. |
|
|
Returns the base 10 logarithm of a specified number. |
|
|
Returns the maximum value from the specified values. |
|
|
Returns the minimum value from the specified values. |
|
|
Returns a specified number raised to a specified power. |
|
|
Returns a random number that is less than 1, but greater than or equal to zero. |
|
|
Rounds the given value to the nearest integer. |
|
|
Rounds the given value to the nearest integer, or to a specified number of decimal places. |
|
|
Returns the positive (+1), zero (0), or negative (-1) sign of the given expression. |
|
|
Returns the sine of the angle defined in radians. |
|
|
Returns the hyperbolic sine of the angle defined in radians. |
|
|
Returns the square root of a given number. |
|
|
Returns the tangent of the angle defined in radians. |
|
|
Returns the hyperbolic tangent of the angle defined in radians. |
|
|
Converts |
|
|
Converts |
|
|
Converts |
|
|
Converts |
|
|
Converts |
|
String Functions
VertiGIS Studio Printing offers additional string functions that are not listed in the table. Use the Expression Editor to browse the full list of functions.
Function |
Description |
Example |
---|---|---|
|
Returns the ASCII code value of the leftmost character in a character expression. |
|
|
Returns the decoded bytes of the given base 64-encoded string. |
|
|
Converts an integerASCIICode to a character. |
|
|
Returns the starting position of |
|
|
Returns the starting position of |
|
|
Returns a string value containing the concatenation of the current string with any additional strings. |
|
|
Returns |
|
|
Returns |
|
|
Inserts |
|
|
Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable. |
|
|
Returns |
|
|
Advances to a new line. |
|
|
Left-aligns characters in the defined |
|
|
Left-aligns characters in the defined |
|
|
Right-aligns characters in the defined |
|
|
Right-aligns characters in the defined |
|
|
Deletes all characters from the |
|
|
Deletes the number of characters specified by |
|
|
Returns a copy of |
|
|
Reverses the order of elements within |
|
|
Returns |
|
|
Retrieves a substring from |
|
|
Retrieves a substring from |
|
|
Returns a string representation of an object. |
|
|
Removes all leading and trailing space characters from |
|
|
Returns |
|
|
Returns the URL encoded form of the given string. |
|