[ic] Quick and stupid question about elsif structures.
Cameron G
ritontor at icenet.com.au
Mon Sep 22 22:17:32 EDT 2003
> > Can I do something like this??
> >
> > [if-loop-data transactions b_address2]
> > [loop-data transactions b_address2]
> > [elsif-loop-data transactions address2]
> > [loop-data transactions address2]
> > [/elsif-loop-data]
> > [/if-loop-data]
> >
> > I searched the mailing archives for the string
> "elsif-loop-data" and
> > didn't find anything, and it's given me pause. Is that even valid
> > syntax? If not, what would one do?
>
>
> Don't want to be Captain Obvious here, but you only need an
> [else] in the above, if that example is literal, becuase you
> not doing any comparisons, and there are only two. In fact
> with the above, you could use the [either] tag as well.
>
> I believe you can elsif the type=explicit
>
> [if type=explicit compare="[loop-data transactions b_address2]"]
> [loop-data transactions b_address2]
> [elsif type=explicit compare="[loop-data transactions address2]"]
> [loop-data transactions address2]
> [/elsif]
> [/if]
>
> Not the prettiest.
>
> Paul
>
Ok so umm... I guess in theory, this should be valid syntax...
[if type=explicit compare="[loop-data transactions b_address1]"]
[and type=explicit compare="[loop-data transactions address1]"]
Do stuff
[/if]
Cause it didn't work for me... ;) it's erroring on the [and] line...
More information about the interchange-users
mailing list