[ic] Nested [if] ... ?
Ed LaFrance (New Media E.M.S.)
ic_users at newmediaems.com
Tue Jul 6 13:54:32 EDT 2004
At 09:46 AM 7/6/2004, you wrote:
>Howdy...
>
>I am trying to figure out how to do something like the following:
>
>[if-item-field active_flag]
>[then]
> [if-loop-data options o_modular]
> [page [loop-code]]
> [else]
> [order [loop-code]]
> [/else]
> [/if-loop-data]
> <img src="__THEME_IMG_DIR__buynow.gif" border="0" align="top"></a>
>[/then]
>[/if-item-field]
>
>Meaning, that if the field 'active_flag' is set by having a value, then
>the rest of the code evaluates. However, when I use this, the
>[if-item-field...] is output as text and not interpreted... the inner if
>is parsed, but the outer is not.
>
>What is wrong with this code? What would be a better way to do this?
>
>Thanks,
>
>
>Tomas
The code snipped is incomplete - I don't know what kind of looping
constructs contain these conditional tests. But I'm guessing you have a
syntax error with your prefix type here. Is this contained within an
[item-list][loop][/loop][/item-list] or
[search-list][loop][/loop][/search-list] or any other looping construct
with the 'item' prefix which in turn contains a [loop] construct? If not,
then you want:
[if-loop-field active_flag]
[if-loop-data options o_modular]
[page [loop-code]]
[else]
[order [loop-code]]
[/else]
[/if-loop-data]
<img src="__THEME_IMG_DIR__buynow.gif" border="0" align="top"></a>
[/if-loop-field]
- Ed
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 Ed.LaFrance at newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
More information about the interchange-users
mailing list