Navigation:  Templates > Template Language Reference > Built-in Template Procedures >====== VAREXISTS (return symbol existence) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

VAREXISTS( symbol )

blk2blue.jpg

EXISTS Returns TRUE if the symbol is available for use.
symbol The symbol whose existence is in question.

The VAREXISTS procedure returns true ('1') if the symbol is available for use, at design-time only. If the symbol is not available for use, VAREXISTS returns false ('').

Return Data Type:     LONG

Example:

#IF(NOT VAREXISTS(%MySymbol))

 #DECLARE(%MySymbol)

#ENDIF

See Also:     #DECLARE

Built-In Template Procedures