You should use something like
info=1;
iter=1;
while info && iter<100
oo_.steady_state=oo_.steady_state+randn(size(oo_.steady_state));
[steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
iter=iter+1;
end