The N_ELEMENTS function provides a convenient method of determining if a variable is defined. The following statement sets the variable abc to zero if it is undefined; otherwise, the variable is not changed.
IF N_ELEMENTS(abc) EQ 0 THEN abc = 0