Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [ic] Nested-IFS and Inner-IFS keep breaking



A far simplier way would be to use a scratch variable...

First off, if there is nother selected have the search field be empty...

Then do this....

[set result][/set]

[if value model]
[seti result][value model][/seti]
[/if]
[if value make]
[and scratch result]
[seti result][scratch reslut], [value make][/seti]
[else]
[seti result][value make][/seti]
[/else]
[/if]
[if value year]
[and scratch result]
[seti result][scratch reslut], & [value year][/seti]
[else]
[seti result][value year][/seti]
[/else]
[/if]

[if scratch result]
[scratch result]
[else]
<P>
You have selected nothing!
</P>
[/else]
[/if]

[set result][/set]

That should be MUCH faster.


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


Search for: Match: Format: Sort by: