@JMichaelTX - My replies here should be in another thread, but I can’t remember how to start a new topic from here and link it to this topic, so can you do that? I’m thinking it should be a topic like “Understanding Variables”. Thanks.
Don’t let variables scare you. You use them all the time in real life, you just don’t realize it.
Let’s say you like to buy Coke (the drink) from a vending machine. Your “routine” is this:
Put $1 in the vending machine, press the Coke button, and take your drink.
But it doesn’t always cost $1, right? It varies from machine to machine. So the cost of a can of Coke is variable. In other words, it is a variable, and you don’t know its value until you get to the vending machine.
So, really, your Coke-buying routine is this:
Put CostOfCoke in the vending machine, press the Coke button, and take your drink.
So when it’s time to go get a Coke, you look at the price, and let’s say it’s $1.25. So you “set” CostOfCoke to $1.25, and “perform” the routine:
CostOfCoke$1.25 in the vending machine, press the Coke button, and take your drink.
This is what you do in real life.