isBoolean

The isBoolean property (formerly the boolean property) indicates that the field contains a Boolean value. The property restricts the valid field values.

You can apply this property to variables with decimal places, but the variable must have at least one place to the left of the decimal point.

Compatibility

Table 1. Support for isBoolean property
Data item JSF handler VGUI record Console UI Text Form Java™ Text Form COBOL Print Form Java Print Form COBOL
Yes Yes Yes No Yes No Yes No

Table 2. Compatibility considerations for isBoolean
Platform Issue
Java generation The locale determines the specific characters used for YES and NO Boolean values.
JSF handler, VGUI record A Boolean field is represented by a check box.
Text UI
  • The value of a numeric field is 0 (for false) or 1 (for true).
  • The value of a character field is represented by a word or subset of a word that is national-language dependent. In English, for example, a boolean field of three or more characters has the value YES (for true) or NO (for false), and a one-character boolean field value has the truncated value Y or N.

Feedback