[ic] if explicit

m.mescoli at omnib.it m.mescoli at omnib.it
Wed Aug 19 15:54:48 UTC 2009


Peter ha scritto:
> On 08/19/2009 04:36 AM, m.mescoli at omnib.it wrote:
>> 1) [if type=explicit compare=`"[data session username]" ne 
>> "marco"`]1[/if]<br />
>> 2) [calc]"[data session username]" ne "marco"[/calc]
>>
>> Why this 2 lines works differently ?
> 
> What are the different results you're getting?
> 
> Also ... (1) is better written as:
> [if session username ne marco]1[/if]
> 
> (2) is better written as:
> [calcn]$Session->{username} ne 'marco'[/calcn]
> 
> 
> Peter
--------- Code:
[data session username]<br />
1) [if type=explicit compare=`"[data session username]" ne 
"marco"`]1[/if]<br />
2) [calc]"[data session username]" ne "marco"[/calc]

--------- marco logged in results:
marco
1) 1
2)

--------- giorgio logged in results:
giorgio
1) 1
2) 1

Marco



More information about the interchange-users mailing list