Boolean (Json function): Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
==Examples== | ==Examples== | ||
The following creates a Json object whose value is the result of a comparison: | |||
<p class="code">%json is object json | |||
%war is float | |||
%peace is float | |||
... | |||
%json = boolean(%war eq %peace) | |||
</p> | |||
==See also== | ==See also== | ||
{{Template:Json:Boolean footer}} | {{Template:Json:Boolean footer}} |
Revision as of 21:10, 17 February 2015
Create a Boolean JSON object (Json class)
[Introduced in Model 204 7.6]
This page is under construction.
Syntax
%json = [%(Json):]Boolean( boolean)
Syntax terms
%json | Json object |
---|---|
[%(Json):] | The optional class name in parentheses denotes a virtual constructor. See "Usage notes", below, for more information about invoking a virtual constructor. |
boolean | Boolean value |
Usage notes
Examples
The following creates a Json object whose value is the result of a comparison:
%json is object json %war is float %peace is float ... %json = boolean(%war eq %peace)