# YesNoFormat()

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

```
YesNoFormat( value=any );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| value | any | Yes | a value that can be cast to a boolean |  |

# Examples

```cfml
  dump(yesnoFormat(false)); // No
  dump(yesnoFormat(true)); // Yes
  dump(yesnoFormat(0)); // No
  dump(yesnoFormat(1)); // Yes
  dump(yesnoFormat('No')); // No
  dump(yesnoFormat('Yes')); // Yes
```







# Categories

[Booleans](../../categories/boolean.md), [Formatting](../../categories/formatting.md)

# See Also

[boolean.yesNoFormat()](../objects/boolean/yesnoformat.md)