Kettle version: 2.3.0.
Java Script version (Rhino) : Unknown

I am using a Java script to identify 2 different patterns in input string. The problem is only one of the condition is executed and the other one doesn't. The conditions are checked using 'If ....else' loop.

Here is what I tried

If (true) --> print a string
Else (false) --> print a different string

The funny thing is whenever the condition gets executed only the 'IF' part works and the 'ELSE' part doesn't work - even if the condition is false.

I thought this may be a limitation in Kettle 2.3.0 version of Java Script and wish to verify with the group.

Thanks for any help,