Variables in Minecraft?

//ads -- adsterra.com -- native banner
?>
I would have a lot more possibilities if I could add variables to my commands. Is there anyway to do this?
I have tried to use armor stands but it requires a command block for every single possibility.
Pictures about "Variables in Minecraft?"


What types of variables are there in MakeCode?
Each variable holds a specific type of information. The first time you use a variable, you set its type. From that point on, you can store only information of that type in that variable....Values of variables.Variable NameValueDogs5Greeting\u201chello!\u201dHousePosition(12, 4, -36)1 more rowAre there variables in Minecraft?
Minecraft commands do have a form of variables, but, unfortunately, they can only store numeric values. This is called the scoreboard, and you can add and access variables by using the /scoreboard command. A list of all the functions you can preform is available here.How do you use variables in Minecraft?
To change a variable name in the editor, select the down arrow next to the variable and then click \u201cRename variable\u2026\u201d....Variables have a name, a type, and a value:How To Use Variables - Minecraft Skript Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Kaboompics .com, Глеб Коровко