ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Elements of a procedure > Constants

Constants

Introduction

The following constants can be used in comparison operators and other expressions within a procedure:

  
Constant     Description
True     Can be used to see if the result of an expression is true
False    Can be used to see if the result of an expression is false
Pi       The numerical value representing the ratio of a circle's circumference to its diameter (approximately 3.14159265)

Example

The following example uses the constant True in a comparison.

  

  

Figure 1. Using the constant True to check against the current value of a variable.

More information

These constants can be used almost anywhere in a procedure where an expression of the relevant type is required, for example:

  

  

Figure 2. Using the constant Pi to calculate the area of a circular arena.

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0496