[ic] Problems with [if] tag

Jon Jensen jon at endpoint.com
Thu May 26 17:44:59 EDT 2005

On Thu, 26 May 2005, T. Stoffels wrote:

> Hi.
> I am trying to compare two values and display some text/html if there's a match.
> I can usually access/output these values by
> --
> [data session username]
> [scratch myvariable]
> --
> But I must be doing something wrong with the if tag, since it won't
> work no matter what I try.... It should look somewhat like this:
> --
> [if [data session username] == [scratch myvariable]]
> Yes, its a match
> [/if]


[if type=explicit compare=" $Session->{username} eq $Scratch->{mvvariable} "]

Remember, in Perl "eq" is for strings and "==" is for numbers. It's 
possible you could really want == there, but I'm guessing you mean eq.


Jon Jensen
End Point Corporation

More information about the interchange-users mailing list