How can ı use second break command?

조회 수: 1 (최근 30일)
Begüm DEVLET
Begüm DEVLET 2016년 10월 6일
답변: Matthias Walle 2016년 10월 6일
when ı try second break command in different while loops in the same script, second break command doesnt work. How can I fix this?
  댓글 수: 2
Matthias Walle
Matthias Walle 2016년 10월 6일
Could you please provide an example?
Thorsten
Thorsten 2016년 10월 6일
Please give a minimal example of your code that does not work as intended.

댓글을 달려면 로그인하십시오.

답변 (1개)

Matthias Walle
Matthias Walle 2016년 10월 6일
while 1
while 2
1
break
end
2
break
end
while 3
3
break
end
Usually you can use as many break commands as you wish in the same skript. Your second break command will probably never be reached by the program if 'it doesn't work'. As mentioned you should provide some code to describe your problem

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by