structure spawning on ocean

Is there a way to say the file #isoverworld, !#isocean? So that the structure can spawn everywhere in overworld but not if #isocean is true Thanks for helping ( ;
Continue to help post