Condition to open one or another level

Thank you so much . It works perfect in my case .

So valid is a option that can check if the object is in the world.

Thanks again.