YesNoFormat()

Yes, for a non-zero value; No, otherwise.

YesNoFormat( value=any );

Returns: String

Argument Description
value
any, required

a value that can be cast to a boolean

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