Command EndCommand

command

endcommand

PFC commands may be inserted between this pair of FISH statements; the commands will be interpreted when the FISH function is executed. There are a number of restrictions concerning the embedding of PFC commands within a FISH function. The model new and model restore commands cannot be invoked from within a FISH function. The lines found between a commandendcommand pair are simply stored by FISH as a list of symbols; they are not checked at all, and the function must be executed before any errors can be detected.

A FISH function definition may appear within a commandendcommand pair, and may itself contain the command statement. A function that is the subject of a callback event may contain the command statement. However, this construction should be used with caution, and avoided if possible. A FISH definition inside of the commandendcommand pair should not redefine the FISH function in which it is currently executing.

Comment lines (starting with ;) are taken as PFC comments, rather than FISH comments; it may be useful to embed an explanatory message within a function, to be printed out when the function is invoked. If the echo mode is off (program echo off), then any PFC commands coming from the function are not displayed to the screen or recorded to the log file.