Declaring Variables

Before you begin defining any operations in the statements section of the extended rule, you must first define the variables that you will use in the extended rule. Variables consist of a name and a data type, and are used to store values.

For this extended rule, you will use these four variables (all of which have a data type of integer).

  • i (temporary variable assigned any value you define in the extended rule)
  • j (another temporary variable assigned any value you define in the extended rule)
  • ildlimit (temporary variable that contains the number of ILD segments)
  • stllimit (temporary variable that contains the number of STL segments)

Use this procedure to declare the four integer variables listed above.

  1. On the first line in the Editor list box, enter the following declaration:
    integer i,j,ildlimit,stllimit;
  2. Press Enter twice to insert a blank line after the declarations section.
    Note: It is not necessary to include a blank line after the declaration and statement sections. However, doing so may improve readability of the extended rule.

You are now ready to define the statements section of the extended rule.