<oren@ben-kiki.org>
<cce+yaml@clarkevans.com>
<ingy@ttul.org>
Copyright © 2001-2005 Oren Ben-Kiki, Clark Evans, Brian Ingerson
Status
This specification is a draft reflecting consensus reached by members of the yaml-core mailing list. Any questions regarding this draft should be raised on this list.
URI:
tag:yaml.org,2002:bool
Shorthand:
!!bool
Kind:
Scalar.
Canonical:
y|n
y|Y|yes|Yes|YES|n|N|no|No|NO |true|True|TRUE|false|False|FALSE |on|On|ON|off|Off|OFF
Mathematical Booleans.
A Boolean represents a true/false value. Booleans are formatted as
English words
(“true”/“false”,
“yes”/“no”
or
“on”/“off”)
for readability and may be abbreviated as a single character
“y”/“n”
or
“Y”/“N”.
Example 1. !!bool Examples
canonical: y answer: NO logical: True option: on