Booleans

Prev Next

Displays boolean values in different ways, for example, through colored labels or icons.

Booleans

How it works

This filter and its variants can be applied to metrics and properties template elements.

Depending on the type, the filter input value is automatically converted to a boolean and then displayed according to the selected variant options.

Value Type

Expected True Values

Expected False Values

BOOLEAN

true

false

INTEGER

1

0

STRING

"true", "1", "yes"

"false", "0", "no"

The string case is ignored (e.g., "True" -> true).

Null or empty values are always handled as false.

Without this filter, the values of metrics/properties are printed as they are according to the underlying value type, for instance:

Component Reference

Here is a comprehensive list of all the elements and properties that can be used to configure the component.

Green/Gray Led

Converts the boolean value into a GREEN or GRAY led.

Name: greenGrayLed

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML

Green/Red Circle

Converts the boolean value into a GREEN or RED circle.

Name: greenRedCircle

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML

OK/Error

Converts the boolean value into a colored Ok or ERROR text.

Name: okError

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML

OK/Error Badge

Converts the boolean value into a colored OK or ERROR badge.

Name: okErrorBadge

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML

On/Off Icon

Converts the boolean value into a POWER-ON or POWER-OFF icon with status text.

Name: onOffIcon

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML

Red/Gray Circle

Converts the boolean value into a RED or GRAY circle.

Name: redGrayCircle

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML

Red/Gray Led

Converts the boolean value into a RED or GRAY led.

Name: redGrayLed

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML

Yes/No

Converts the boolean value into a colored YES or NO text.

Name: yesNo

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML

Yes/No Badge

Converts the boolean value into a colored YES or NO badge.

Name: yesNoBadge

Input Types: BOOLEAN, STRING, INTEGER

Output Type: HTML