Changing the usage of result (in my example the 3 snakeOrShack lines after the "snake or shack" if statement) will get rid of the "variable result is not defined" error. For anything else you would need to ask a question.
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: