INCLAN: subroutine: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
No edit summary
 
Line 4: Line 4:
:''sequence of statements''
:''sequence of statements''
'''end'''
'''end'''
or
'''command'''


== Description ==
== Description ==


Defines a new user-defined command within a macro, i.e. a macro within a macro. User-defined commands defined by '''subroutine''' statements are called by their ''name'', possibly followed by parameters, in exactly the same way as macros. User-defined commands defined by a '''subroutine''' statement are local to the current macro (or macros called through it). Within a macro, a user-defined command can only be called after it was defined.
Defines a new user-defined command within a macro, i.e. a macro within a macro. User-defined commands defined by '''subroutine''' statements are called by their ''name'', possibly followed by parameters, in exactly the same way as macros. User-defined commands defined by a '''subroutine''' statement are local to the current macro (or macros called through it). Within a macro, a user-defined command can only be called after it was defined.

Latest revision as of 09:46, 17 August 2009

Synopsis

subroutine name

sequence of statements

end

Description

Defines a new user-defined command within a macro, i.e. a macro within a macro. User-defined commands defined by subroutine statements are called by their name, possibly followed by parameters, in exactly the same way as macros. User-defined commands defined by a subroutine statement are local to the current macro (or macros called through it). Within a macro, a user-defined command can only be called after it was defined.