Detect entity in specific dimension

Is there a way to check what dimension a mob is in?

Continue to help post