The @@ENDIF command marks the end of an @@IFSTRCMP command sequence. The @@ENDIF command can be used only in conjunction with the @@IFSTRCMP statement.
@@ENDIF
@@IFSTRCMP (@@1, SKIPNONE) @_JAVGS (0, @@2) @@ELSE @@IFSTRCMP (@@1, SKIPMISSING) @_JAVGS (1, @@2) @@ELSE @@IFSTRCMP (@@1, SKIPZERO) @_JAVGS (2, @@2) @@ELSE @@IFSTRCMP (@@1, SKIPBOTH) @_JAVGS (3, @@2) @@ELSE @@ERROR (@@L1, @_INVALIDSKIP) @@ENDIF @@ENDIF @@ENDIF @@ENDIF
@@IFSTRCMP (@@2, @_NULL) @@1 @@ELSE (@@1 + @@2) @@ENDIF
This test checks to see if the second macro argument is blank. If it is, then only the first argument is used. If the second argument is not blank, then the two arguments are added.
Copyright 1991-2002 Hyperion Solutions Corporation. All rights reserved.