What if the mass is not limited to exact values, but instead can occur in several ranges of values? Consider the following examples:
|Less than or equal to 100||1 in|
|Greater than 100 but less than or equal to 200||2 in|
|Greater than 200 but less than or equal to 300||3 in|
|Greater than 300 but less than or equal to 400||4 in|
|Greater than 400||6 in|
We can change an existing rule to accommodate these ranges.
If mass <= 100 Then bracket_width = 1 ElseIf mass > 100 And mass <= 200 Then bracket_width = 2 ElseIf mass > 200 And mass <= 300 Then bracket_width = 3 ElseIf mass > 300 And mass <= 400 Then bracket_width = 4 Else bracket_width = 6 End If
With these changes, we check for a range of values in each If or Else If statement.
Remove the Multi-Value List from the Mass Parameter
As a last step, we modify the User parameter mass, which is currently a multi-value parameter. We can remove the multi-value characteristic associated with this parameter by editing the multi-value list.
Test the Modified Rule
(1) mass=75, width=1 in (2) mass=150, width=2 in