commandvariable
nounUK /kəˈmɑːnd ˈveəriəbl/
US /kəˈmænd ˈveriəbl/
A command variable is a special name in a computer program that holds a value you can change.
The programmer used a command variable to store the player's score.
OTHER MEANINGS
2. In scripting, a variable that changes how a command behaves when it runs.
Set the command variable to 'quiet' so the script prints less.
3. A stored value that a user can adjust to control a tool or system.
The robot's speed is a command variable you can edit in the menu.
4. A named slot in code that passes instructions to a function.
The function reads the command variable to decide which action to take.