[ic] How to use value of [data session arg] in [if...] ?

Mike Heins mikeh@minivend.com
Sun, 12 Nov 2000 08:52:08 -0500

Quoting Tim Murphy (tjmurphy@videotron.ca):
> Hi all,
>  I'm trying to do a simple [if...] based on the standard arg passed from an [area...]
> link. I'm sorta stuck. What do I use as the key? I can come up with:
> [if data session::arg::??? eq "something"]
> but I have no idea what to use for ???. Just trying [if session arg] obviously won't
> give me the value for comparison. If someone could please enlighten me on this probably
> embarrassingly simple problem I would be most grateful.

It is just:

	[if session arg eq "whatever"]

Probably more useful is a regex, like [if session arg =~ /whatever/].

Even more useful would be [perl] [/perl] if you get complex.

Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

My wife is great.  She doesn't care where I go, just as long as I don't
have any fun.  -- Lee Trevino