[ic] If Else Statement
Grant
listbox at email.com
Mon Oct 13 15:24:27 EDT 2003
> I would not recommend doing the following in an iterative list (like the
> results.html page, for instance), but if this is just a one-off
> thing, like
> on flypage.html, you can do:
>
> [tmp field_contents][item-field category][/tmp]
>
> [if scratch field_contents eq schwinn]
> ...
> [elsif scratch field_contents eq mongoose]
> ...
> [/elsif]
> [elsif scratch field_contents eq something_else]
> ...
> [/elsif]
> [else]
> some other value: [scratch field_contents]
> [/else]
> [/if]
>
>
> - Ed L.
Ed,
Why do you say not to use that in an iterative list? That code doesn't
seem too slow to me. Maybe saving values to scratch variables is slower
than I thought.
- Grant
More information about the interchange-users
mailing list