YesNoFormat()
Yes, for a non-zero value; No, otherwise.
YesNoFormat( value=any );
Returns: String
Examples
dump(yesnoFormat(false)); // No
dump(yesnoFormat(true)); // Yes
dump(yesnoFormat(0)); // No
dump(yesnoFormat(1)); // Yes
dump(yesnoFormat('No')); // No
dump(yesnoFormat('Yes')); // Yes
See also
- Booleans
- Formatting
- boolean.yesNoFormat()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)