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]
Try:
[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 -- Jon Jensen End Point Corporation http://www.endpoint.com/ _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.