Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
JSON.CreateBoolean
Creates a boolean node with given value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JSON | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "JSON.CreateBoolean"; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
Value | The boolean value. Pass 1 for true and 0 for false. | 1 |
Result
Returns JSON or error.
Description
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.
Examples
Create a boolean with an expression:
Set Variable [$json; Value:MBS( "JSON.CreateBoolean"; Length($text) > 0 )]
Example result: true
See also
Blog Entries
FileMaker Magazin
This function is free to use.
Created 5th January 2016, last changed 11st December 2016