User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

functioncall [2006/08/29 20:18] (current)
Line 1: Line 1:
 +# $EPIC: functioncall.txt,​v 1.3 2006/08/29 18:22:56 sthalik Exp $
 +   * This function returns 1 if the current script context is expecting a return value (ie, in an alias called as a function and not as a command.)
 +   * This function returns 0 in all other circumstances,​ including but not limited to aliases executed as commands, /[[on]] bodies, /[[userhost command|userhost]] -cmd bodies, and any other place where a return value is not expected.
 +This function can be used to slightly alter the behavior of your aliases
 +depending on whether they are called as a command or as a function.
 +The return value is either 0 or 1, depending on whether the current
 +script context is a function call or not.
functioncall.txt ยท Last modified: 2006/08/29 20:18 (external edit)