var parser = new BooleanParser("yes", "no"); alert(parser.format(false)); //Result is "no" alert(parser.parse("yes")); //Result is true alert(parser.parse("true")); //Result is true
Name | Type | Default | Description |
---|---|---|---|
trueValue | Object | The JST_DEFAULT_TRUE_VALUE value | The value for boolean TRUE |
falseValue | Object | The JST_DEFAULT_FALSE_VALUE value | The value for boolean FALSE |
falseValue | The value for boolean FALSE |
trueValue | The value for boolean TRUE |
falseValue
The value for boolean FALSE |
trueValue
The value for boolean TRUE |