False (Json function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:Json:False subtitle}}
{{Template:Json:False subtitle}}
This function creates a boolean Json object with a value of false.
This function creates a boolean Json object with a value of false.
==Syntax==
==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>
<ul>
<li>The False method is equivalent to [[Boolean (Json function)|Boolean(false)]].</li>
<li>The False method is equivalent to [[Boolean (Json function)|Boolean(false)]].</li>
<li>As with all virtual or true constructors, it is usually not necessary to specify the <code>%(json):</code> before the False method. That is <code>%json = %(json):false</code> is equivalent to <code>%json = false</code>.</li>
</ul>
</ul>
==Examples==
==Examples==
The following creates a boolean Json object with a value of false:
The following creates a boolean Json object with a value of false:

Latest revision as of 18:40, 18 February 2015

Create a false Boolean JSON object (Json class)

[Introduced in Model 204 7.6]

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

Syntax

%json = [%(Json):]False

Syntax terms

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

Usage notes

  • The False method is equivalent to Boolean(false).
  • As with all virtual or true constructors, it is usually not necessary to specify the %(json): before the False method. That is %json = %(json):false is equivalent to %json = false.

Examples

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

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

It prints:

%json=false

See also