[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] use UserTag ?
>
> This the code in my catalog.cfg
>
> UserTag isSetComplete Routine <<EOR
> sub {
> return 1;
> }
> EOR
>
>
> This is the code in the page:
>
> [if $UserTag->isSetComplete()]
> yes
> [else]
> no
> [/else]
> [/if]
>
> The output is all no .... because ?
>
Because you are making up the syntax as you go along, which is
not usually a good idea.
>
> This is the same ?
>
> [if isSetComplete]
> ...
> [/if]
>
>
Try something like this:
[if type="explicit" compare="[issetcomplete]"]
yes
[else]
no
[/else]
[/if]
or this:
[calc]
if ($Tag->issetcomplete()){
return 'yes';
}else{
return 'no';
}
[/calc]
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
- References:
- [ic] use UserTag ?
- From: interchange-users@icdevgroup.org (Stefano Kerschbaumer - Interline S.r.l.)