[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [ic] Nested-IFS and Inner-IFS keep breaking
> <FORM action=[area search] name=search_form method=GET>
>
> <INPUT TYPE=hidden NAME=mv_search_map VALUE="
> mv_searchspec=make
> mv_searchspec=model
> mv_searchspec=year
> ">
> <INPUT TYPE=hidden NAME=mv_search_field VALUE=make>
> <INPUT TYPE=hidden NAME=mv_search_field VALUE=model>
> <INPUT TYPE=hidden NAME=mv_search_field VALUE=year>
> <INPUT TYPE=hidden NAME=make VALUE="HONDA">
> <INPUT TYPE=hidden NAME=model VALUE="CIVIC">
> <INPUT TYPE=hidden NAME=year VALUE="1990">
> <INPUT TYPE=hidden NAME=mv_coordinate VALUE=1>
> <INPUT TYPE=hidden NAME=mv_search_page VALUE=search_mirrors>
>
> <INPUT BORDER=0 NAME="mv_submit" VALUE="Submit" TYPE=submit>
>
> </TD></TR></FORM></TABLE>
You can actually try several approaches to this....
First I find the syntax you use rarely reliably works...
If you use the syntax:
[if type="value" term="make" op="eq" compare="Make"]
[if type="value" term="model" op="eq" compare="Model"]
[and type="value" term="year" op="eq" compare="Years"]
<br>select make you haven't select anything<br>
[/if]
[if type="value" term="model" op="eq" compare="Model"]
[and type="value" term="year" op="ne" compare="Years"]
Year
[/if]
[if type="value" term="model" op="ne" compare="Model"]
[and type="value" term="year" op="eq" compare="Years"]
Model
[/if]
[if type="value" term="model" op="ne" compare="Model"]
[and type="value" term="year" op="ne" compare="Years"]
Model & Year
[/if]
[/if]
[if type="value" term="make" op="ne" compare="Make"]
[if type="value" term="model" op="eq" compare="Model"]
[and type="value" term="year" op="eq" compare="Years"]
Make
[/if]
[if type="value" term="model" op="eq" compare="Model"]
[and type="value" term="year" op="ne" compare="Years"]
Make & Year
[/if]
[if type="value" term="model" op="ne" compare="Model"]
[and type="value" term="year" op="eq" compare="Years"]
Make & Model
[/if]
[if type="value" term="model" op="ne" compare="Model"]
[and type="value" term="year" op="ne" compare="Years"]
Make, Model, & Year
[/if]
[/if]
That should work for you... The other thing I would try is since you are calling
this page from a from your type might have to be type="cgi"...
Also you have a type in your code below... On the else if statement just above
the HONDA,CIVIC line, you have mistyped you variable name... That can cause what
you have done below...
> [if value make eq "Make"]
> [if value model eq "Model"]
> [if value year eq "Years"]
> <br>select make you haven't select anything<br>
> [else]
> year
> [/else]
> [/if]
> [else]
> model
> [/else]
> [/if]
>
> [elsif value model eq "Models"]
> HONDA
> [/elsif]
>
> [elsif value models eq "Years"]
> HONDA,CIVIC
> [/elsif]
>
> [else]
> HONDA,CIVIC,1990
> [/else]
> [/if]
>
> Resulting Output:
> CIVIC
>
> 1990
> year [/else] [/if] [else] model [/else] [/if] [elsif value search2 eq
> "All
> Models"] make [/elsif] [elsif value search3 eq "All Models"] make,model
> [/elsif] [else] make,model,year
>
>
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@www.minivend.com
> http://www.minivend.com/mailman/listinfo/interchange-users
>
John Beima
jbeima@palb.com
P.A.L.B. Systems - Phone: (780)451-1086 - Fax: (780)447-4760
11639-122 Street, Edmonton, Alberta, Canada, T5M 0B6
_______________________________________________
Interchange-users mailing list
Interchange-users@www.minivend.com
http://www.minivend.com/mailman/listinfo/interchange-users