fix Issue 12900 - Wrong code in IfStatement condition Expression