[ic] area mv_arg ...?

Jonathan Clark interchange-users@icdevgroup.org
Mon Aug 19 03:59:01 2002


> > > ok, now why can't I do an
> > >
> > > [if cgi BVPage="Budget"] [/if]
> > >
> > >
> > > _Am (really getting confused now...)
> > >
> >
> > Post in context and read the docs.
> >
> > http://www.icdevgroup.org/cgi-bin/ic/docfly.html?mv_arg=ictags04%2e37
>
> I did read the docs.  Other forms that I've tried are:

Ok. You have now redeemed yourself by posting in context..


>
> [if type=explicit compare=`
>                         $cgi->{BVPage} =~ /^Budget/
>                         `]
>

Remember you are using Perl, and variables are case sensitive.

  $cgi->{BVPage}

is not the same as

  $CGI->{BVPage}.

> and
>
> [if cgi BVPage =~ /^Budget/]

not sure why this one didn't work.. are you sure you are getting a result
from [cgi BVPage]?

incidentally, back to the Perl thing..

> > > [if cgi BVPage="Budget"] [/if]

is incorrect because '=' is not used for testing

[if cgi BVPage eq "Budget"] for strings

and

[if cgi BVPage == 10] for numerics

Jonathan
Webmaint.

ps. the odd 'thankyou' doesn't go amiss, same goes for feedback on whether
things _did_ work!