Check boxes control autonomous choices that can assign either an
on or off value to a symbolic, quantitative, or text variable or parameter. When the box is checked, the assigned value is on, and an X appears in the check box. When the choice is off, the check box is blank. The following example shows the 3-hole-punch and Edge-binding options with an on value, and the Corner-stapled option with an off value.
![]() |
When you create check boxes, you assign each box to a separate variable or parameter.
Specifying the Activation Value
The Value-on-activation attribute specifies what value, if any, the variable or parameter receives when the check box is activated. The default is none. On-value attribute if you want the check box to be selected when activated, or the same as the Off-value attribute if you want the check box to be blank when activated. Specifying the On and Off Values
The On-value and Off-value attributes are required values for check boxes, indicating the value that G2 assigns to the variable or parameter when the check box is selected and when it is not. The default value is none. Allowable and default values are datatype specific for the variable or parameter.
| For this variable or parameter type... | The value can be... |
|---|---|
|
quantitative
|
any float or integer
|
|
integer
|
any integer
|
|
float
|
any float
|
|
symbolic
|
any symbol
|
|
logical
|
any truth value
|
|
text
|
any text string
|
Class-Specific Attributes
The class-specific attributes of check boxes are: