TCC-RT > Variables & Functions > Functions > @FUNCTION
@FUNCTION

<< Click to Display Table of Contents >>

Navigation:  TCC-RT > Variables & Functions > Functions >

@FUNCTION

@FUNCTION[name] : Returns the definition of the specified user-defined function name as a string, or a null string if the function doesn't exist. When manipulating strings returned by @FUNCTION you may need to disable certain special characters with SETDOS /X. Otherwise, command separators, redirection characters, and other similar punctuation in the function may be interpreted as part of the current command, rather than part of a simple text string.

 

Example:

 

echo %@function[myfunction]

 

See the FUNCTION command.