IsLeapYear(iYear)

Syntax

%IsLeapYear(UInteger)%

Description

Returns true if year specified by UInteger is a leap year, and false otherwise.

Parameters

Parameter Description
UInteger A 16 bit unsigned integer value (num). The number of bits is controlled by the #Language setting.

Examples

AML example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Copy
<AMVARIABLE NAME="varDay" VALUE="" />
<AMVARIABLE ACTIVITY="set" VARIABLENAME="varDay">%IsLeapYear(2024)%</AMVARIABLE>
<AMSHOWDIALOG>%varDay%</AMSHOWDIALOG>

VB script example

Sub
MsgBox IsLeapYear(2024)
End Sub

Related Topics