Boolean values: Difference between revisions

mv jq
(mv jq)
(mv jq)
Line 559:
 
(source: [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMAScript Language Reference])
 
=={{header|jq}}==
<tt>true</tt> and <tt>false</tt> are the only entities of type "boolean":
 
<tt>
$ jq type
true
"boolean"
false
"boolean"
</tt>
 
The above shows the jq command invocation, followed by alternating lines of input and output.
jq's logical operators, however, do not require boolean inputs. In brief, <tt>false</tt> and <tt>null</tt> are both regarded as false, and all other JSON entities are regarded as <tt>true</tt>.
 
=={{header|Julia}}==
2,526

edits