[ic] [if][elsif] question
Miguel Navarro
jack at blueweb-inc.com
Sun Jul 6 18:44:17 EDT 2003
----- Original Message -----
From: "Himem Inc" <interchange at himem.net>
To: <interchange-users at icdevgroup.org>
Sent: Sunday, July 06, 2003 11:50 AM
Subject: [ic] [if][elsif] question
> I have a search page with a drop down that allows users to search
> different pages (eg search my site, my friends site, or google). I have
> this form element named 'site'. I am trying to do something like this
> for the results page:
>
> [if cgi site eq "my friends site"]
> [then]
> [bounce href="http://friends-site.com/search/?query=[cgi
> mv_searchspec]"]
> [/then]
> [/if]
> [if cgi db eq "google"]
> [then]
> [bounce href="http://www.google.com/?query=[cgi mv_searchspec]"]
> [/then]
> [/if]
>
> This works fine, however I would rather use an if elsif type form. But
> when I change the second if to an elsif, it seems to default to google
> unless my friends site is specified, such as it is saying else, but not
> checking the if. Is this correct? Or am I doing something wrong?
>
> Thanks.
>
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
Cannot tell by the code you have posted but it sounds like you put an
[elsif] statement block outside the [if] statement block
[/if]
[elsif cgi db eq "google"]
should be
[/then]
[elsif cgi db eq "google"]
[then]
[bounce href="http://www.google.com/?query=[cgi mv_searchspec]"]
[/then]
[/elsif]
[else]
[/else]
[/if]
M
More information about the interchange-users
mailing list