What comes first on Index Shard Allocation Filtering?

I wonder what is the priority of the index shard allocation filtering settings?

index.routing.allocation.include.{attribute}
index.routing.allocation.require.{attribute}
index.routing.allocation.exclude.{attribute}

Another way to put this question is... Does it needs to match all options?

If ES matches both an include and an exclude, what happens?

best