Ticket Created
over 3 years ago

CIQQA-1312

int and logical &&

4.1.3 win/eclipse

var x = 2, y= 4;
if(x)         {LOG.println(true);} else {LOG.println(false);}
if(y)         {LOG.println(true);} else {LOG.println(false);}
if(x && y)    {LOG.println(true);} else {LOG.println(false);}

prints

true
true
false <--- bug

Parents
  • I can confirm the bug on Linux as well with ConnectIQ-Version 4.1.3

    using Toybox.Test as t;
    
    module testBug {
      (:test)
      function testBugInt(logger) {
        var x = 2, y = 4;
        t.assertMessage(x && y, "True");
        return true;
      }
    }

Comment
  • I can confirm the bug on Linux as well with ConnectIQ-Version 4.1.3

    using Toybox.Test as t;
    
    module testBug {
      (:test)
      function testBugInt(logger) {
        var x = 2, y = 4;
        t.assertMessage(x && y, "True");
        return true;
      }
    }

Children
No Data