View Source VacEngine.Processor.Library.Functions (Vac Engine v1.1.1)

Actual blueprint expression functions

Functions defined in this module correspond to the functions available to compose complex blueprint expressions.

Function have:

  • a name (the actual function)
  • a short name, defined by a @short attribute
  • a label, defined by a @label attribute
  • one or more signatures, defined by a @signature attribute. Each signature defines a valid type combination of argument and output
  • one or more implementations to handle all the possible types and inputs

Link to this section Summary

Functions

Add two values

Add days to date

Add hours to date

Add minutes to date

Add months to date

Add seconds to date

Add weeks to date

Add years to date

Calculate age in years given a birthdate

Boolean AND

Return the day difference between two dates

Divide two values

Return earliest date

Return latest date

Check equality of two expressions.

Check if a is greater than b. For date, a is after b.

Check if a is greater than or equal to b. For date, a is after b.

Return the hour difference between two dates

Check if struct is date

Check if boolean is false

Check if variable is nil

Check if variable is not nil

Check if boolean is true

Return latest date

Return latest date

Check if a is less than b

Check if a is less than or equal to b

Return the minute difference between two dates

Return the month difference between two dates

Multiply two values

Check inequality of two expressions.

Inverse boolean

Get the current time

Boolean OR

Return the second difference between two dates

Subtract two values

Get the current day

Get a variable value

Return the week difference between two dates

Return the year difference between two dates

Link to this section Functions

Add two values

Add days to date

Add hours to date

Link to this function

add_minutes(date, minutes)

View Source

Add minutes to date

Link to this function

add_months(date, months)

View Source

Add months to date

Link to this function

add_seconds(date, seconds)

View Source

Add seconds to date

Add weeks to date

Add years to date

Calculate age in years given a birthdate

Value returned in years.

Boolean AND

Return the day difference between two dates

Always return a positive number.

Divide two values

Return earliest date

Return latest date

Check equality of two expressions.

Check if a is greater than b. For date, a is after b.

Check if a is greater than or equal to b. For date, a is after b.

Return the hour difference between two dates

Always return a positive number.

Check if struct is date

Check if boolean is false

Returns true if the boolean is nil

Check if variable is nil

Returns false only for nil

Check if variable is not nil

Returns true only for nil

Check if boolean is true

Return latest date

Return latest date

Check if a is less than b

Check if a is less than or equal to b

Return the minute difference between two dates

Always return a positive number.

Return the month difference between two dates

Always return a positive number.

Multiply two values

Check inequality of two expressions.

Inverse boolean

Get the current time

Boolean OR

Return the second difference between two dates

Always return a positive number.

Subtract two values

Get the current day

Get a variable value

Return the week difference between two dates

Always return a positive number.

Return the year difference between two dates

Always return a positive number.