(chuckling at the funny little image in your post)
Klox, I'd hate to give you references that wouldn't help you much because Bobcad's scripting language is ......homemade
I guess the general rules of logic apply, but when unknown traps are lurking under the surface of what should be straight-forward, it can be frustrating.
I've picked up so many bits of info from all over, that I really couldn't point to any book and say: "This is what I used". Studying scripts that other people wrote (ie., scripts that came with Bobcad, plus other cool people that took the time to help me out, like James Bond0h) is where I learned to do it.
The basic principles of what they call Boolean logic, I think, is sort of the starting point: how to work with IF THEN statements, how to make loops, use AND and OR, and ELSE and ELSEIF. Then you have the different types of variables, and how to set them up and call them, how to use a debug tool to test your logic.
I poured over the vb scripting manual that came with Bobcad a lot, trying to understand the rules of syntax (the exact way of writing a command). A bit of study conducted on the internet on unknown terms revealed a lot of material to help clue me on on what I wasn't familiar with.
But, by far, learning by studying other scripts is by far the best tool to learn with. I usually pursued specific ideas that I wanted to encapsulate in a script, and in doing that, went down lots of dead ends of course, but even those teach you something. What do they say: "If you've made a lot of mistakes in a given field, you gain experience, but if you make all the mistakes, then you are an expert" I'm getting close