Porblem with the exection of a conditional expression using && and ||

HI,
I have written the following logic.

  1. Branch Step(evaluate labels to true)
    Sequence with label(%root/var1%==‘S’ && %root/var2%==‘J’) || (%root/var1%==‘R’ && %root/var2%==‘K’): But the control does not enter the sequence even when i give root/var1=‘S’ and root/var2=‘J’ inspite of the condition evaluating to true at service execution. When i just write label as %root/var1%==‘R’ && %root/var2%==‘K’ the control goes inside the sequence. I dont understand why it fails when i write rest of the condition using the ||. Ideally it should work as I even use parenthesis to separate the 2 set of logical conditions.

Could anyone help or give some suggestions

Thanks in advance,
RC

Hi…Is this problem solved ?

Regards,
Suri

For extra paranoia you may want to try with ()'es around the == operators.

Otherwise i dont see why you get what your’e expecting.

Hi,

your post made me curious. For me it works fine. I am using

Product webMethods Integration Server
Version 8.2.1.0
Updates IS_8.2_SP1_Core_Fix6
TNS_8-2_SP1
Build Number 315
SSL Strong (128-bit)

Please find a short testcase attached - just run the “runAllTests” service, which should produce the following output:

2012-08-01 12:08:50 CEST [ISP.0090.0003C] Expression evaluated to true
2012-08-01 12:08:50 CEST [ISP.0090.0003C] Expression evaluated to true
2012-08-01 12:08:50 CEST [ISP.0090.0003C] $default case executed
2012-08-01 12:08:50 CEST [ISP.0090.0003C] $default case executed
2012-08-01 12:08:50 CEST [ISP.0090.0003C] $default case executed

Thomas
TVO.zip (7.6 KB)