ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Writing a procedure using the procedure editor > Errors and warnings while writing a procedure > Error: The function must have both parameters specified

Error: The function must have both parameters specified

Description

This error is displayed in the list of errors and warnings at the bottom of the procedure editor when the procedure uses a function that needs two parameters - i.e. values that the function acts on - but one or both of these parameters has not been specified.

This applies to the following functions:

 Pow function, to return a number to the power of another number 
 Random function, to generate a random number between two values 
 Round function, to round a number to a given number of decimal places  

The missing parameter will show as '...' in the procedure editor; you need to type in a relevant value or drag an expression into the place of the missing item.

More information

Everything in an ANY-maze procedure that accepts a parameter (i.e. the thing or things that it operates on) must have all parameters specified. You can't leave any empty 'holes' in any statements of a procedure.

See also:

 Errors and warnings while writing a procedure 
 Errors and warnings while running a procedure 
 Maths functions and operators 
 Other functions 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0508