WorldEdit - replace block if condition is true

//ads -- adsterra.com -- native banner
?>
I have a significant amount of chunks of farmland on some hills that I want to plant crops on all at once. I'm considering using WorldEdit to do this but I don't want to just select the whole general area of the farmland and replace all air with seeds (this actually works, from prior experience on a more powerful server) because it'll probably crash my server.
Is there a way to use conditional statements to the effect of "if air block is directly above farmland replace with seeds" to plant these seeds?
Pictures about "WorldEdit - replace block if condition is true"



How do I replace a specific block in WorldEdit?
How to use WorldEdit to swap and replace blocks in MinecraftHow do you replace a block in Minecraft?
Prefixing any block type with an asterisk ( * ) will randomly choose between all states for that block for each position.How do you Randomise blocks with WorldEdit?
Aside from commands that take a mask as a parameter (such as //replace [mask] <pattern> ), you can also apply masks to individual brushes by using the /mask command while holding the brush, or you can apply a mask to all your WorldEdit actions globally with //gmask .World Edit Tutorial- Episode 2: Replacing blocks and setting multiple blocks!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: ready made, Armin Rimoldi, Tatiana Syrikova, Pixabay