ENDIF

Command

The ENDIF command marks the end of an IF command sequence. The ENDIF command can be used only in conjunction with IF or IF ... ELSEIF statements.

Syntax

ENDIF;

Notes

Example

The following example is based on the Sample Basic database. This calc script tests to see if the current member in the Market dimension is a descendant of West or East. If so, Hyperion Essbase multiplies the value for Marketing by 1.5. The calc script then tests to see if the current member is a descendant of South. If so, Hyperion Essbase multiplies the value for Marketing by .9. If the current member is not a descendant of West, East, or South, Hyperion Essbase multiplies the value for Marketing by 1.1.

IF (@ISMBR(@DESCENDANTS(West))
         OR 
    @ISMBR(@DESCENDANTS(East))
       )
    Marketing = Marketing * 1.5;
ELSEIF(@ISMBR(@DESCENDANTS(South))
    )
    Marketing = Marketing * .9;
ELSE 
    Marketing = Marketing * 1.1;
ENDIF;
See Also

ELSE
ELSEIF
IF


Copyright (c)1991-2000 Hyperion Solutions Corporation. All rights reserved.