ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Elements of a procedure > Statements available to procedures > The Run sub-procedure statement

The Run sub-procedure statement

Introduction

The Run sub-procedure statement is used to invoke a sub-procedure, which allows chunks of procedure code to be moved into their own

A Run sub-procedure statement can run any procedure that has been set up as a sub-procedure. The same sub-procedure can be invoked any number of times within the same procedure, and can also be run from more than one procedure. A sub-procedure can even be run from within another sub-procedure.

More information

More information on sub-procedures, and an example of how to use them, can be found under Re-using parts of procedures.

See also:

 Statements available to procedures 
 The Wait until statement   
 The Action statement 
 The Repeat statement   
 The If statement     
 The Set value statement    
 The Go to statement   
 The Label statement  
 The Note statement   
 Other statements 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0485