while

EGL 키워드 while은 지정된 논리식이 true로 해석되는 한 실행되는 루프의 시작을 표시합니다. 키워드 endwhile 문의 닫기를 표시합니다.

구문

while 문의 구문 다이어그램
label
뒤에 콜론이 표시된 레이블로 continue 또는 exit 문에서 참조할 수 있습니다. 자세한 정보는 조건문 및 루프 명령문의 내용을 참조하십시오.
logical expression
TRUE 또는 FALSE로 평가되는 표현식(일련의 피연산자와 연산자)입니다.
statement
EGL 명령문입니다.

예제

while (index < 7)
  myRec[index].airport="Airport" + index;
  myRec[index].city="City" + index;
  myRec[index].state="S" + index;

  index = index + 1;
end