Yes, for a true value; No for a false value, empty string or null. Throws an exception for other values.
yesNoFormat(value)
returns string
Name | Type | Required | Default | Description |
---|---|---|---|---|
value | any | Yes | A Boolean value or empty string |
Pass in a true value outputs Yes
yesNoFormat(true)
Pass in a false value outputs No
yesNoFormat(false)
Pass in an empty string outputs No
yesNoFormat("")