[ic] Nested ELSIFs
listbox at email.com
Wed Sep 3 11:58:30 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]
> > [if value something]
> > number 1
> > [/if]
> >[elsif !scratch variable]
> > [if scratch whatever eq this]
> > number 2
> > [elsif scratch whatever eq that]
> > number 3
> > [/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.
Ok, thanks for checking into that. Is it possible that nested elsif
functionality is just something that needs to be added to IC? Also, when
you say explicit, do you mean [if type=explicit] etc.?
More information about the interchange-users