# f.Event()

## 개요

<mark style="color:purple;">`f.Event()`</mark> 를 통해 이벤트를 제어할 수 있습니다. 이벤트는 큐(Queue) 형식으로 순차적으로 실행됩니다.

{% hint style="warning" %}
이벤트 스크립트 내에서만 사용 가능합니다. 이를 통해 스크립트 종료 후 실행될 다음 이벤트의 동작을 제어할 수 있습니다.
{% endhint %}

## 파라미터

| 파라미터명     | 필수여부   | 타입     | 제약사항             | 설명       |
| --------- | ------ | ------ | ---------------- | -------- |
| eventName | 조건부 필수 | String | runNext() 사용시 필수 | 대상 이벤트 명 |

## 기능요소

<table><thead><tr><th width="233">요소명</th><th>설명</th></tr></thead><tbody><tr><td><a href="f.event/f.event-.runnext">runNext()</a></td><td>다음 실행될 이벤트를 큐에 맨 앞에 추가</td></tr><tr><td><a href="f.event/f.event-.break">break()</a></td><td>실행 중인 이벤트를 중단</td></tr></tbody></table>
