YesNoFormat

Return Yes/No based on whether the input is true/false

Method Signature

YesNoFormat(value=[boolean])

Arguments

Argument
Type
Required
Description
Default

value

boolean

true

The value to check for true/false and return Yes/No

Examples

Example of Yes

Pass in a true value outputs Yes

Run Example

yesNoFormat( true );

Result: Yes

Example of No

Pass in a false value outputs No

Run Example

Result: No

Example of empty string

Pass in an empty string outputs No

Result: No

Additional Examples

Run Example

Last updated

Was this helpful?