Handling conditions :
The format is :
{ bz:if cond="condition" }
code 1
{ bz:else }
code 2
{ bz:endif}
The first part of the code is executed if the condition is true, other wise
the second one is. The { bz:else} tag if optional.
The example below print 'ok' only if the page is called with the right password.
(ie with ?pwd=test at the end of the url)
<html>
<body>
{ bz:if cond="pwd=='test'" }
OK.
{ bz:else}
Access denied.
{ bz:endif}
</body>
</html>
|