You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure, whether the following is intentional, but I think it is a bug. Only if all elements of a non-scalar if-condition are true, then the then statement should be executed?
--> if [false,false],disp('TRUE'),else,disp('FALSE'),end
FALSE
--> if [true,false],disp('TRUE'),else,disp('FALSE'),end
TRUE % Not OK, should be FALSE
--> if [false,true],disp('TRUE'),else,disp('FALSE'),end
TRUE % Not OK, should be FALSE
--> if [true,true],disp('TRUE'),else,disp('FALSE'),end
TRUE
OS: Ubuntu 14.04
Version 0.2.5.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I am not sure, whether the following is intentional, but I think it is a bug. Only if all elements of a non-scalar
if
-condition aretrue
, then thethen
statement should be executed?The text was updated successfully, but these errors were encountered: