Ticket Created
over 2 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
  • ok - it's clear - can't count &&/||  not compile or throw exception but no miscounting. I write code and it doesn't run and don't know why as it's consistent with math.

    There is no place for interpretation in math at all - you can interpret the clouds in the sky :)

    (true &&/AND true) = true

    (NotZero &&/AND NotZero) = NotZero (1,3,45 1000 but not 0)

Comment
  • ok - it's clear - can't count &&/||  not compile or throw exception but no miscounting. I write code and it doesn't run and don't know why as it's consistent with math.

    There is no place for interpretation in math at all - you can interpret the clouds in the sky :)

    (true &&/AND true) = true

    (NotZero &&/AND NotZero) = NotZero (1,3,45 1000 but not 0)

Children
No Data