YEAR

Top  Previous  Next

Keyword Description

Calendar-related

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

l

l

 

Syntax

YEAR (no arguments)

 

Return Value

Returns the numerical value of the currently processing year

Example

Sample code

IF YEAR <> MEMORY[2] THEN MEMORY[2] = YEAR; TOTALEQUITY = TOTALEQUITY * .9

' withdraw 10% of account value at the first of each year

 

See also:

ENTRYEAR