I have these lines of code:
someFunction
disp('This should not be executed, if condition in someFunction is
true')
function someFunction
if condition
% what do I have to write here so the disp command is not executed?
% return does not do it. I don't want to throw an error. quit/exit
% are also not what I want..
end
What statement do I need in the if condition block so the disp statement is not executed if condition is true? error('some error')
would do it. But I don't want to throw an error.