Compiled Template if.adp

set __adp_output {}; set __ad_conn_locale [ad_conn locale]
append __adp_output "<html>
<head>
<title>Demo: Conditional Expressions</title>
</head>
  <body>
    <h1>Conditional Expressions</h1>

    <p>The value of x is <strong>[ns_quotehtml [lang::util::localize ${x}]]</strong><br>
    The value of y is <strong>[ns_quotehtml [lang::util::localize ${y}]]</strong><br>
    The value of n is <strong>[ns_quotehtml [lang::util::localize ${n}]]</strong><br>
    The value of bool_t_p is <strong>[ns_quotehtml [lang::util::localize ${bool_t_p}]]</strong><br>
    The value of bool_1_p is <strong>[ns_quotehtml [lang::util::localize ${bool_1_p}]]</strong><br>
    The value of bool_f_p is <strong>[ns_quotehtml [lang::util::localize ${bool_f_p}]]</strong><br>
    The value of bool_0_p is <strong>[ns_quotehtml [lang::util::localize ${bool_0_p}]]</strong><p>

<table cellpadding=\"2\" cellspacing=\"0\" border=\"1\">
<tr bgcolor=\"#eeeeee\">
<th>Operator</th>
<th>Test</th>
<th>Result</th>
</tr>

<tr><td><kbd><strong>eq</strong></kbd></td>
    <td><kbd>if \@x\@ eq 5</kbd></td>
    <td><strong>"
if {"[ns_quotehtml [lang::util::localize ${x}]]" eq "5"} {
append __adp_output "X is 5"
} else {
append __adp_output "X is not 5"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>eq</strong></kbd></td>
    <td><kbd>if \@x\@ eq 6</kbd></td>
    <td><strong>"
if {"[ns_quotehtml [lang::util::localize ${x}]]" eq "6"} {
append __adp_output "X is 6"
} else {
append __adp_output "X is not 6"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>eq</strong></kbd></td>
    <td><kbd>if \@n\@ eq \"Fred's Flute\"</kbd></td>
    <td><strong>"
if {"[ns_quotehtml [lang::util::localize ${n}]]" eq "Fred's Flute"} {
append __adp_output "N is \"Fred's Flute\""
} else {
append __adp_output "N is not \"Fred's Flute\""
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>eq</strong></kbd></td>
    <td><kbd>if \@n\@ eq \"Fred\"</kbd></td>
    <td><strong>"
if {"[ns_quotehtml [lang::util::localize ${n}]]" eq "Fred"} {
append __adp_output "N is \"Fred\""
} else {
append __adp_output "N is not \"Fred\""
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>defined</strong></kbd></td>
    <td><kbd>if \@x\@ defined</kbd></td>
    <td><strong>"
if {[info exists x]} {
append __adp_output "x is defined"
} else {
append __adp_output "x is undefined"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>nil</strong></kbd></td>
    <td><kbd>if \@x\@ nil</kbd></td>
    <td><strong>"
if {(![info exists x] || ${x} eq {})} {
append __adp_output "x is nil"
} else {
append __adp_output "x is nonnil"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>defined</strong></kbd></td>
    <td><kbd>if \@z\@ defined</kbd></td>
    <td><strong>"
if {[info exists z]} {
append __adp_output "z is defined"
} else {
append __adp_output "z is undefined"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>nil</strong></kbd></td>
    <td><kbd>if \@z\@ nil</kbd></td>
    <td><strong>"
if {(![info exists z] || ${z} eq {})} {
append __adp_output "z is nil"
} else {
append __adp_output "z is nonnil"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>defined</strong></kbd></td>
    <td><kbd>if \@w\@ defined</kbd></td>
    <td><strong>"
if {[info exists w]} {
append __adp_output "w is defined"
} else {
append __adp_output "w is undefined"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>nil</strong></kbd></td>
    <td><kbd>if \@w\@ nil</kbd></td>
    <td><strong>"
if {(![info exists w] || ${w} eq {})} {
append __adp_output "w is nil"
} else {
append __adp_output "w is nonnil"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>nil</strong></kbd></td>
    <td><kbd>if \@w\@ nil</kbd></td>
    <td><strong>"
if {(![info exists w] || ${w} eq {})} {
append __adp_output "w is nil"
} else {
append __adp_output "w is nonnil"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>true</strong></kbd></td>
    <td><kbd>if \@bool_t_p\@ true</kbd></td>
    <td><strong>"
if {[string is true -strict "${bool_t_p}"]} {
append __adp_output "ok"
} else {
append __adp_output "not ok"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>true</strong></kbd></td>
    <td><kbd>if \@bool_1_p\@ true</kbd></td>
    <td><strong>"
if {[string is true -strict "${bool_1_p}"]} {
append __adp_output "ok"
} else {
append __adp_output "not ok"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>true short</strong></kbd></td>
    <td><kbd>if \@bool_t_p\@</kbd></td>
    <td><strong>"
if {[string is true -strict "${bool_t_p}"]} {
append __adp_output "ok"
} else {
append __adp_output "not ok"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>true short</strong></kbd></td>
    <td><kbd>if \@bool_1_p\@</kbd></td>
    <td><strong>"
if {[string is true -strict "${bool_1_p}"]} {
append __adp_output "ok"
} else {
append __adp_output "not ok"
}
append __adp_output "</strong></td>
</tr>


<tr><td><kbd><strong>false</strong></kbd></td>
    <td><kbd>if \@bool_f_p\@ false</kbd></td>
    <td><strong>"
if {![string is true -strict "${bool_f_p}"]} {
append __adp_output "ok"
} else {
append __adp_output "not ok"
}
append __adp_output "</strong></td>
</tr>

<tr><td><kbd><strong>false</strong></kbd></td>
    <td><kbd>if \@bool_0_p\@ false</kbd></td>
    <td><strong>"
if {![string is true -strict "${bool_0_p}"]} {
append __adp_output "ok"
} else {
append __adp_output "not ok"
}
append __adp_output "</strong></td>
</tr>

</table>

</body>
</html>
"
set __adp_output