Skip to main content

Functions

PREMIUM

Functions are used when writing extended conditions.

A function is an advanced way to access dynamic data, such as next holiday in the receiver's timezone or tomorrow being a working day in the sender's timezone.

Some functions allow arguments, that is, input which will alter the way the function behaves. If no argument is supplied, all functions will behave in a standard way. For example, functions which allow a date as argument will use today's (depending on timezone) date if no argument is supplied. If a date is supplied the result be based on that date.

Note

A function without a parenthesis equals a function with an empty parenthesis, that is, both will result in a default function behavior.

The following functions are available:

Function

Result type

Argument type

Description

todayIsWeekendSender()

boolean

N/A

Today is weekend in sender's timezone.

todayIsWeekendReceiver()

boolean

N/A

Today is weekend in receiver's timezone.

todayIsHolidaySender()

boolean

N/A

Today is holiday in sender's timezone.

todayIsHolidayReceiver()

boolean

N/A

Today is holiday in receiver's timezone.

dateNowSender()

date

N/A

Current date in sender's timezone.

dateNowReceiver()

date

N/A

Current date in receiver's timezone.

dateTimeNowSender()

dateTime

N/A

Current date and time in sender's timezone.

dateTimeNowReceiver()

dateTime

N/A

Current date and time in receiver's timezone.

todayAsNumberInYearSender()

integer

N/A

Today is day number X in a year in sender's timezone.

todayAsNumberInYearReceiver()

integer

N/A

Today is day number X in a year in receiver's timezone.

weekdayNumberSender()

integer

N/A

Current weekday number in sender's timezone.

weekdayNumberReceiver()

integer

N/A

Current weekday number in receiver's timezone.

monthNowSender()

string

N/A

Current month in sender's timezone.

monthNowReceiver()

string

N/A

Current month in receiver's timezone.

dayNowSender()

string

N/A

Current day in sender's timezone.

dayNowReceiver()

string

N/A

Current day in receiver's timezone.

timeNowSender()

time

N/A

Current time in sender's timezone.

timeNowReceiver()

time

N/A

Current time in receiver's timezone.

nextHolidayDateSender()

date

date

Next holiday date in sender's timezone.

nextHolidayDateReceiver()

date

date

Next holiday date in receiver's timezone.

nextWorkDateSender()

date

date

Next working date in sender's timezone.

nextWorkDateReceiver()

date

date

Next working date in receiver's timezone.

nextWorkDaySender()

string

date

Next working day in sender's timezone.

nextWorkDayReceiver()

string

date

Next working day in receiver's timezone.