[ic] Nested elsif bug still in 5.2

Grant emailgrant at gmail.com
Sun Jul 9 13:02:40 EDT 2006


I've been dealing with a nested elsif bug for a while.  I first
noticed it in 4.9.3:

http://www.icdevgroup.org/pipermail/interchange-users/2003-September/035131.html

and then in 5.0:

http://www.icdevgroup.org/pipermail/interchange-users/2004-March/038202.html

and now in 5.2.  Basically, nested elsif doesn't work when named
parameters are used.  Here's an example:

[tmpn name="test"]1[/tmpn]
[if type="scratch" term="test" op="eq" compare="2"]
INCORRECT
[elsif type="scratch" term="test" op="eq" compare="1"]
        [if type="scratch" term="test" op="eq" compare="2"]
INCORRECT
        [elsif type="scratch" term="test" op="eq" compare="1"]
CORRECT
        [/elsif]
        [/if]
[/elsif]
[/if]

The above works correctly when positional parameters are used instead
of named.  Is this fixed in 5.4?

- Grant


More information about the interchange-users mailing list