I feel this is necessary for a game like this. I need a way to have certain steps of a program to be different under certain circumstances without having to write another loop.
For example: I want a bot that takes logs from storage, saws them into planks, but if the log storage is empty, then look for logs around the beacon next to the wood farm and get logs from there. Right now, I'd have to set an entire loop for both conditions, but an If or Case statement can help me only allow it to branch at one step of the process.