# Event Execution Order

<figure><img src="/files/xw57A4JwKBEagL3Hbbg1" alt=""><figcaption><p>Event execution</p></figcaption></figure>

End Processing comes into account only if you have more than one event that would be executed, but want to stop processing after a certain event was processed.

This is more or less only handy for the BIP.\
Lets assume you have 2 events configured for a BIP plate:

```
a) Condition: VALUE equals 0 
   Action: turn plate OFF
   Priority: 1
   End Processing: OFF

b) Condition: VALUE less than 10 
   Action: turn plate RED
   Priority: 0
   End Processing: OFF
```

Now, if VALUE is *5* , all is fine, only b) will be executed, as only the condition `VALUE < 10` matches and the plate turns red

Now, if VALUE is *0* , you have a problem since first a) and then b) will be executed, as both conditions are true. This results in the plate turning red, where it should be off.\
If you set “End Processing” on a) to ON , b) will no longer be executed if a) already matched. So in this testcase the plate will be turned off, as expected.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spadnext.com/features/event-execution-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
