EXISTS (return embed point existence)

Top  Previous  Next

 

EXISTS( symbol )

EXISTS

Returns TRUE if the embedded source code point is available for use.

symbol

The identifier symbol for a #EMBED embedded source code point.

The EXISTS procedure returns true ('1') if the embedded source code point is available for use, at design-time only. If the embedded source code point is not available for use, EXISTS returns false (''). An embedded source code point is available for use if the section containing it is being used. This means that all #EMBEDs in the #PROCEDURE section, and all #GROUP sections referenced in the #PROCEDURE, are always available. #EMBEDs in a #CONTROL, #CODE, or #EXTENSION section are available only if the section is being used.

Return Data Type:     LONG

Example:

#IF(EXISTS(%CodeTemplateEmbed) = %True)

 !Generate some source

#ENDIF

 

See Also:

Built-In Template Procedures