A unit (i.e. enemy / boss) has x-y actions per turn, for each it will have to "decide" what to do.
For each, start from the top until you find the first condition that resolves to true.
I tried making everything as self-explanatory as possible, but it's still complicated enough.
The output is a python-like pseudocode but that was my choice for easy reading.
(Input is just a set of "actions" with "conditions")
| Action | Description |