Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

무한루프에 빠졌을 경우 문의 #241

Open
maxtortime opened this issue Aug 11, 2014 · 2 comments
Open

무한루프에 빠졌을 경우 문의 #241

maxtortime opened this issue Aug 11, 2014 · 2 comments
Labels

Comments

@maxtortime
Copy link

This Q&A created by pupu_answer | 2014/08/11 09:39:27


무한루프에 빠졌을 경우,

보통 break;를 사용해서 빠져 나오는데..

guitar에서는 어떻게 빠져나와야 하는지 궁금합니다.ㅠ

@maxtortime
Copy link
Author

This comment created by pupu_answer | 2014/08/11 09:39:51


"요약"(을)를 "무한루프에 빠졌을 경우 어떻게 해야 하죠..?"에서 "무한루프에 빠졌을 경우 문의"(으)로 변경했습니다.

@maxtortime
Copy link
Author

This comment created by ssmmhh99 | 2014/08/12 12:51:30


GUITAR는 별도의 break 문을 제공하지 않습니다.

때문에 아래와 같이 수동으로 유사한 효과를 내어 반복문을 원할때 탈출할 수 있습니다.

반복문 변수 값을 최대 반복 횟수보다 많게 설정하면 됩니다.

아래 예제는 100번까지 반복하도록 되어 있지만 3번까지만 반복하고 탈출하는 예제 입니다.


$i=1 설정 $i=100 반복 {

$i=3 같으면 $i=101 설정한다.

1초 대기한다.

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant