[ic] Nested ELSIFs
Ed LaFrance
edl at newmediaems.com
Wed Sep 3 11:26:31 EDT 2003
At 08:00 PM 9/2/2003 -0700, you wrote:
>The syntax is still correct right? But, if you test it like this:
>
>[tmp whatever]that[/tmp]
>[if scratch variable]
>[then]
> [if value something]
> number 1
> [/if]
>[/then]
>[elsif !scratch variable]
> [if scratch whatever eq this]
> number 2
> [elsif scratch whatever eq that]
> number 3
> [/elsif]
> [/if]
>[/elsif]
>[/if]
>
>"number 3" should print to the screen but you get "number 2" instead.
>
>- Grant
I can confirm this in a 4.9.8 catalog, so it does appear that [elsif]'s do
not nest. This would be a case where you would be better off using
[explicit] or some perl.
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl at newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================
More information about the interchange-users
mailing list