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 Action statement

The Action statement

Introduction

The Action statement allows a procedure to do something that will affect the test. This might be to activate or alter some kind of I/O item, for example, or to pause or end the test itself. Actions can also be used to output some explanatory text to the display, to generate a result that can be used in analysis, or to aid in debugging a procedure.

For full details of the actions available to a procedure, see Actions.

Example

In the following example of a couple of lines taken from a procedure, there are two action statements used, which will execute when the animal enters the 'Centre' zone.

The first action will activate the 'Shock floor' output switch, and the second will output some text to the display indicating that this has happened.

The text that is output to the display in this case will also appear in any video that is recorded of this test.

  

  

Figure 1. An example of a procedure with two Action statements

The example above uses an action to output text to the display, although you could also use the What to display while testing settings in the protocol list to do the same thing, by showing the active output ports on screen during a test.

See also:

 •Statements available to procedures 
 •The Wait until statement   
 •The Repeat statement   
 •The If statement     
 •The Set value statement    
 •The Go to statement   
 •The Label statement  
 •The Run sub-procedure statement  
 •The Note statement   
 •Other statements 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0479