In code, I want to see if the consul says, “Collected Banana.” I would prefer if there were a way to do it in an if statement like, if(debug.log(“Collected Banana”). But if not it would be ok.
1 Answer
1Hello @amylclarkson,
Well you can use Application.logMessageReceived and attach an Action to it with += but I guess what you should do if it’s not for debug purpose is attaching an event to your Banana collection function instead of checking the console. If you can share more infos about how you proceed and what you want to achieve we can help you better