Built-ins for booleans

Page Contents

c (when used with boolean)


This built-in exists since FreeMarker 2.3.20.

This built-in converts a boolean to string for a "computer language" as opposed to for human audience. The result will be "true" or "false", regardless of the boolean_format setting. When generating JavaScript and such, this should be used, as otherwise changing the boolean_format can break the generated computer-language output.

Note that this built-in also works on strings.

string (when used with a boolean value)

Converts a boolean to a string. You can use it in two ways:

FreeMarker Manual -- For FreeMarker 2.3.20
HTML generated: 2013-06-27 20:54:33 GMT
Edited with XMLMind XML Editor