exiting code if condition is met

7 visualizzazioni (ultimi 30 giorni)
Max
Max il 11 Nov 2015
Commentato: Thorsten il 12 Nov 2015
I have written a bunch of code but I would like to ignore it if and a condition is met. so for
if length(dict)=1
newguess=dict
end
%bunch of code
I want to ignore all that code if my if statement is met and just stop if length(dict)=1

Risposta accettata

Thorsten
Thorsten il 11 Nov 2015
if length(dict)=1
newguess=dict
else
%bunch of code
end
  3 Commenti

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by