Hi everybody,
My sample if condition have 3 expression. As the following code, how can I evaluate statement 2 and statement 3 when the expressions are true?
a=1b=1c=3if c==2 disp('C=2')elseif a~=c disp('a~=c') % Statement 2
elseif a~=c && b~=c disp('a&b~=c') % Statement 3
end
When I run the code, it just showed 'a~=c', eventhough the expression 'a~=c && b~=c' is true.
Thanks.
Best Answer