[ic] alternating colour display

Marty interchange-users@icdevgroup.org
Sun Nov 17 11:25:02 2002


On Sun, 2002-11-17 at 00:12, Cameron wrote:
> i'm trying to alternate colours on my item display, using this code:
> 
> [set colourset]no[/set]
> [loop search="se=ADIPEX/sf=category/tf=title,contains"]
> <FORM ACTION="[process-target]" METHOD=POST>
> <INPUT TYPE=hidden  NAME="mv_todo"        VALUE="refresh">
> <INPUT TYPE=hidden  NAME="mv_order_item"  VALUE="[loop-code]">
>                 [if colourset =~ /no/][set colourset]yes[/set]
>                 #print it in white....
>                 [else][set colourset]no[/set]
>                 #print it in a colour
>                 [/else][/if]
> </form>
> [/loop]
> 
> yet it never seems to do the "else" but. doing a [scratch colourset] jut
> after the [loop] begins shows me that it's setting colourset to yes, but it
> still prints it out in white. can someone tell me what i'm doing wrong? this
> seems to be right to me, but it's obviously not...

You might try...

[if scratch colourset =~ /no/][set colourset]yes[/set]


-- 
Marty <marty@sediva.com>