FotoWeb 6.0 User Guide - Customization - FotoWare
FotoWeb 6.0 User Guide - Customization - FotoWare
FotoWeb 6.0 User Guide - Customization - FotoWare
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Customizing <strong>FotoWeb</strong> 3.0<br />
2.3.6.2 Evaluating conditions<br />
Since the conditions are simple true/false evaluations, their usage is very straightforward. The evaluations are<br />
performed using ‘if’ or ‘ifnot’ tags. For example:<br />
<br />
<br />
<br />
<br />
<br />
Example 20: Evaluating conditions.<br />
In this example the account status of the logged on user is being evaluated. If the account is locked out, then the<br />
first section of the if-clause is executed, otherwise the second section is executed.<br />
The ‘’ clause allows evaluation of the negation at the same time. However, if only negation needs to be<br />
evaluated, then an ‘ifnot’ can be performed on the condition. For example:<br />
<br />
<br />
<br />
Example 21: Inverted condition evaluation.<br />
In this example a context is created for execution only if the condition being tested is false.<br />
The ‘if’ and ‘ifnot’ tags can be nested and they can contain any other tags in their contexts. For example:<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Example 22: Nested condition evaluation.<br />
12 / 47 <strong>FotoWare</strong>