Language Guide
CHAPTER 8
Handlers
Subroutine Definitions and Calls 235
The statement
rock around the current date
later in the same script displays the current date in a dialog box.
Here’s another example of the use of subroutine parameter labels:
to check for yourNumber from bottom thru top
if bottom yourNumber and yourNumber top then
display dialog "Congratulations! You scored."
end if
end check
The statement
check for 8 from 7 thru 10
later in the same script displays the specified dialog box.
Subroutines With Positional Parameters 8
The sections that follow describe the syntax for defining and calling
subroutines with positional parameters. Examples of subroutines that use this
syntax begin on page 238.
Subroutine Definition, Positional Parameters 8
The definition for a subroutine with positional parameters lists the order in
which to list parameters when calling the subroutine and the statements to be
executed when the subroutine is called.