Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

353
Views
Javascript Logical AND (&&) operator behavior not working in WSO2 EI 6.6.0 Script mediator

I am just performing simple Logical AND Operation inside Script mediator of WSO2 EI 6.6.0

Code:

 <script language="js"><![CDATA[
 var log = mc.getServiceLog();   
var initial_group="L1";
var initial_queue ="";
 if( (initial_group =="L1") && (initial_queue ="WIN")){
     log.info("Matching success!");}
     else{
         log.info("Matching failed!");
     }
     ]]></script>

Even though i passed initial_queue as empty, && condition of if statement is matched and finally it produce output like below

Matching success!

Instead of Matching failed!

Can anyone explain this strange behavior of Logical && Operator?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!