[ic] use UserTag ?

Kevin Walsh interchange-users@icdevgroup.org
Thu Sep 12 22:23:01 2002


> 
> 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
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/