In this Lua programming lesson we take a look at Lua Variable with Arithmetic Operators, Learn Lua Codecademy, Use Arithmetic Operators with Variable. Learning how to use arithmetic operators with variables may seem strange at first, but once you understand that the variable represents a value then you will better know how to use the proper arithmetic operators. If you know you have 2 variables that are numeric values, then you are able to perform arithmetic using Lua’s built-in arithmetic operators. Use arithmetic operators with variables any time you want to perform any mathematical calculation. Remembering that a string that contains number/s is not the same thing as a variable that contains a numeric value. Errors will arise in your code when you perform an arithmetic operation using a string and a number. Make sure to test your code and consider using the type() function on each variable to verify you are using the data type that is needed. Lua programming language in 2023 will allow you to learn how a programmer thinks. Thanks for watching Lua Variable with Arithmetic Operators, Learn Lua Codecademy, Use Arithmetic Operators with Variable.