blob: 7a9af7369a735692d492609a741794a7d3918039 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
<html>
<head>
<title>FreeMarker: Boolean Values Test</title>
</head>
<body>
<p>A simple test follows:</p>
<p>Hello, world!</p>
<p>Now perform scalar boolean tests:</p>
<p>
b is true.<br />
</p>
<p> This makes sense.<br />
</p>
<p>
boolean3 succeeded.<br />
</p>
<p>
boolean4 succeeded.<br />
</p>
<p>
boolean4 || boolean5 succeeded.<br />
</p>
<p>
boolean5 || boolean4 || boolean5 succeeded.<br />
</p>
<p> boolean4 && boolean5 failed.<br />
</p>
<p>Now test list models:</p>
<p>
list1 succeeded.<br />
</p>
<p>
list2 succeeded.<br />
</p>
<p>Test hash models:</p>
<p>
hash1 succeeded: Hello, world.<br />
</p>
<p>
hash2 succeeded.<br />
</p>
<p>Test not operator:</p>
<p>
Not boolean1 succeeded
</p>
<p>
Not boolean1 succeeded
</p>
<p> Not boolean2 failed
</p>
<p> Not boolean2 failed
</p>
<p>
Message is "Hello, world!"
</p>
<p> Message is "Hello, world!"
</p>
</body>
</html>