MATLAB: Exist function terminates script

conditional executionexistifMATLAB

After an if-exist block, why does script stop executing? In example below the code never gets to the final line. I feel that regardless of the state of the if block, the final line should execute. If I comment out the if and end lines, then I do get to the final line.
IniParamFlag=1;
if exist('Params','var')==1,
IniParamFlag=menu('Initialize parameters','yes','no');
end
IniParamFlag

Best Answer

You appear to have a control-Z immediately after your 'end' as the very next character.