Integer variable

Integer variables are General Actions. They function like additional Score variables.

"Integer" means whole number.

Variables defined as they're changeable, inconstant. =Using integer variables= Variables are used to record numerical (whole-number) values. They can be used when the Score variable isn't enough, and more numbers need to be recorded.

Creating a variable
Create a new variable by dragging the "Integer" action into an Action Panel. Then choose its name. This adds an integer with that name to the Build Panel along with some other actions.

This action should only be used to initialize the variable.

Add and Subtract
Adds or subtracts a specified value to the variable. Note that you can add and subtract negative values.

Examples
(This may be irrelevant)

On Roblox, I will do an example;

https://media.discordapp.net/attachments/474227415485251604/567116493209337857/sw.PNG?width=831&height=406

Then I will add them just by printing.

https://media.discordapp.net/attachments/474227415485251604/567117132127797250/sn.PNG?width=831&height=407

And we'll see the results in Output!

https://media.discordapp.net/attachments/474227415485251604/567117681455530024/sfg.PNG?width=826&height=407

Equal to
(Some people might be puzzled of what these does normally as a kid).

This can be an action and a condition, including simple explanations.

As an action
Sets the variable's value to the specified value. (Changed the value to what you wanted to change)

As a condition
Checks if the variable's value is equal to the specified value. (This should be common sense)

Displaying integer variables
The value of variables can be displayed in Speak text and UI text.

Any occurrence of where name is the name of an existing variable, is replaced with the value of that variable. example: If I can name a variable "coot", you put on any text

Greater than and Less than
Condition only. Checks if the variable's value is greater than (or less than) the specified value.

Not equal to
Condition only: Checks if the variable's value is not equal to the specified value. (This is the opposite of Equal to.)

=Difference between integers and the Score=
 * Integers don't have a maximum or minimum value. They can be negative numbers and also numbers higher than 100 (or even 1000).


 * (Technically, they do have a max and min value, but they have a much larger range of possible values compared to the Score.)


 * Integers are not displayed under the UI text like the Score.

Similarities:
 * Integer variables are also global. (They have the same value across all scripts in the world.)
 * The Score has similar actions: Equals, Add, Subtract, Is Less, Is More, Is Not

=History= Integer variables were introduced in the Blocksworld 1.37.6 update.