User Tools

Site Tools


exists_return_embed_point_existence_.htm
Navigation:  Templates > Template Language Reference > Built-in Template Procedures >====== EXISTS (return embed point existence) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

EXISTS( symbol )

blk2blue.jpg

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

exists_return_embed_point_existence_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)