Range Parameters

Top  Previous  Next

Range parameters define a range of values that the parameter can be selected from. Range parameters are often the most useful parameter type.

 

Range parameters are defined using the range command.

 

$p=range(low,high,increment (optional), excludemultiplesof (optional))

 

Examples:

 

$p=range(1,100)                $p can take any (integer) value from 1 to 100.

$q=range(2,4.5,0.001)        $q can take any value from 2 to 4.5 in 0.001 increments.

$r=range(0,3pi,pi/4)                $r can take any value from 0 to 3π in increments of π/4. The values will be inserted as decimals.

$s=range(19,31,1,10)                $s can take any value from 19 to 31 EXCLUDING 20 and 30 which are multiples of 10.