Boolean

A logical boolean (true / false).

Define a boolean attribute type

#!test[schema]
define
  attribute shipped value boolean;

Insert data that has a boolean attribute

#!test[schema]
#{{
define
  entity order, owns shipped;
#}}
#!test[write]
insert
  $o isa order, has shipped false;

Insert a standalone boolean attribute

#!test[write]
insert
  $_ isa shipped false;

Specify valid values for a boolean attribute type

#!test[schema]
define
  attribute opted-in value boolean @values(true);

Specify valid values for owning a boolean attribute type

#!test[schema]
#{{
define
  attribute email-verified value boolean;
#}}
#!test[schema]
define
  entity subscriber owns email-verified @values(true);

Retrieve data by boolean attribute

#!test[read]
match
  $o isa order, has shipped false;