[ic] lost in [if] [log] world...

Dan Browning interchange-users@interchange.redhat.com
Fri Apr 26 18:31:01 2002


At 06:04 PM 4/26/2002 -0400, you wrote:
>Okay, I have so far created 2 components that are 'polls' (thanks for
>your info Kevin).  I have a hidden variable called "which_poll" and a
>unique value for each poll.  The purpose of that was I figured I could
>just make one page my 'poll_results' page.  Here's what I have on the
>results page:
>
><--begin results page-->
>[if type=value name="which_poll" op="ne" compare="site_design"]
>&nbsp;
>     [log file="poll_site_design" joiner="\t" type=quot hide=1
>interpolate=1]
>     [value site_design][/log]
>
>[elseif type=value name="which_poll" op="ne" compare="cat_browser"]
>&nbsp;
>     [log file="poll_cat_browser" joiner="\t" type=quot hide=1
>interpolate=1]
>     [value cat_browser][/log]
>
>[/elseif]
>[else]&nbsp;[/else]
>[/if]
><--end results page-->
>
>First of all, I created the [if]'s just like the docs say, (with op="=~"
>and with compare="/value/") but that didn't work, played around with it
>and came up with this which DOES, but with an undesirable result.  First
>of all, the results page shows this:
>
>  [elseif type=value name="which_poll" op="ne" compare="cat_browser"]
>[/elseif]

s/elseif/elsif/

One of those tricky English -> Perl translations.  :-)

+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Dan Browning, Kavod Technologies <db@kavod.com>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"There is hopeful symbolism in the fact that flags do not wave in a
vacuum."
                 -- Arthur C. Clarke