False (Json function)

From m204wiki
Revision as of 18:40, 18 February 2015 by Alex (talk | contribs) (→‎Usage notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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