Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Creates a boolean node with given value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 6.0 Yes Yes Yes Yes Yes

MBS( "JSON.CreateBoolean"; Value )


Parameter Description Example value
Value The boolean value. Pass 1 for true and 0 for false. 1


Returns JSON or error.


Creates a boolean node with given value.
As we pass JSON in JSON around, you can simply write "false" directly instead of calling one of this functions.


Create a boolean with an expression:

Set Variable [$json; Value:MBS( "JSON.CreateBoolean"; Length($text) > 0 )]

Example result: true

See also

JSON.CreateBool   -   JSON.CreateDoubleArray

Feedback: Report problem or ask question.

MBS FileMaker tutorial videos