The IfController needs valid JavaScript.
Assume cusid is set to C1234 then your conditions become:
C1234!="nothing found"
and
!C1234.equals("nothing found")
Remember that variables are replaced with their contents before
further evaluation.
Try quoting the variables, as in:
"${cusid}"!="nothing found"
!"${cusid}".equals("nothing found")
I guess we need an example or two in the IfController documentation.
S.
On Apr 1, 2005 9:53 PM, Ghananeel Gondhali <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In a regular expression
> reference name - cusid
> regular expression - ,'(C\d+)'
> template - $1$
> match no -0
> default value = "nothing found"
>
> In the IF controller i want to execute http requests only if cusid not equals
> nothing found
>
> i tried
> ${cusid}!="nothing found"
>
> !${cusid}.equals("nothing found")
>
> the contents of controller never get executed. is the condition incorrect or
> some other problem. I get cusids for some users, and for some users there are
> no cusids. yet code in controller never gets called.
>
> regards,
> Raj
>
>
> ---------------------------------
> Yahoo! Messenger
> Show us what our next emoticon should look like. Join the fun.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]