Defining Logic > Functions > Calendar Functions > CalYear

CalYear

Note: the CalYear function is available only in the Professional edition of Process Simulator.

The CalYear() function corresponds to the year of the calendar date you defined as part of the warm-up period or simulation begin date under simulation properties. The function can be used in any logic. The function name must be followed by the pair of parentheses.

 

The following is an example of using the function:

If CalYear()=2021Then

{

     <logic statements>

}


© 2015 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com