True (Json function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
No edit summary
Line 1: Line 1:
{{Template:Json:True subtitle}}
{{Template:Json:True subtitle}}
 
This function creates a boolean Json object with a value of true.
This page is [[under construction]].
==Syntax==
==Syntax==
{{Template:Json:True syntax}}
{{Template:Json:True syntax}}
Line 8: Line 7:
<tr><th>%json</th><td><var>Json</var> object</td></tr>
<tr><th>%json</th><td><var>Json</var> object</td></tr>
<tr><th nowrap="true"><var>[%(Json):]</var></th>
<tr><th nowrap="true"><var>[%(Json):]</var></th>
<td>The optional class name in parentheses denotes a [[Notation conventions for methods#Constructors|virtual constructor]]. See [[#Usage notes|"Usage notes"]], below, for more information about invoking a virtual constructor.</td></tr>
<td>The optional class name in parentheses denotes a [[Notation conventions for methods#Constructors|virtual constructor]].</td></tr>
</table>
</table>
==Usage notes==
==Usage notes==
<ul>
<li>The True method is equivalent to [[Boolean (Json function)|Boolean(true)]].</li>
</ul>
==Examples==
==Examples==
The following creates a boolean Json object with a value of false:
<p class="code">b
%json  is object json
%json = true
printText {~=%json}
end
</p>
It prints:
<p class="code">%json=true
</p>
==See also==
==See also==
{{Template:Json:True footer}}
{{Template:Json:True footer}}

Revision as of 03:22, 18 February 2015

Create a true Boolean JSON object (Json class)

[Introduced in Model 204 7.6]

This function creates a boolean Json object with a value of true.

Syntax

%json = [%(Json):]True

Syntax terms

%jsonJson object
[%(Json):] The optional class name in parentheses denotes a virtual constructor.

Usage notes

Examples

The following creates a boolean Json object with a value of false:

b %json is object json %json = true printText {~=%json} end

It prints:

%json=true

See also