Since you are using specific counts that are true or false you don't need to use else or while. You were using else wrong in that example as well but you don't really need it. You do not need to make it so complicated in that image trying to embed a bunch of conditions that are not required. You've also embedded while farmercount = 2 when farmercount = 1 which can never be true. You just need :
farmercount = 1, every 2 seconds, add 1 to food
farmercount = 2, every 2 seconds, add 3 to food
farmercount = 3, every 3 seconds, add 12 to food
As separate events. No weird embedding of whiles and elses please. Try that and see what happens.