What Operators Are and Why They Matter
An operator tells the program what to do with the values it already has.
If you have a price and a shipping cost, you need to add them to get a total. If you have an age and a minimum access rule, you need to compare them. If you have two conditions, you may need to combine them.
In all of those cases, operators turn loose data into decisions, checks, or results the program can use.
- Operators work on values and variables.
- An expression is the result of combining those pieces with meaning.
- Reading an expression well is as important as writing it.