VARIABLES
A variable is a letter or word that takes the value of a number, the variables are in program memory, saved settings so that later you can use. For example, if we use the following block:

We are indicating that the variable " Color " will take the value of " 4 " then the variable " Color " are really using the number " 4 ". The faceplates may be found in the top of the bar blocks in the Section of "variables ".
Types of variables
In briko blocks there are 4 types of variables:

By using the block above example, the variable is always automatically inicaliza in a type 'variable int "but if we want to select a specific type of variables must use the block:

Allows us to initialize a variable with the type and value you specify.
Example 1:
We will declare or discharge a variable of type " int " called " var " that is equal to 4. First we click on the menu that says variables:

Now we will use the next block to initialize a variable:

First we ensure that the type of the variable is the correct one using the first menu, in this case select " int ":

Then we will rename it the same way we changed the name of our brikos, by clicking where it says item and selecting " new name " and type the name you want, in this case " var ":

Finally we go to the menu that says " Math " and drag a block number and put it in the blank box and change the value we want in this case " 4 ".


Example 2:
Variables are very useful when we want to use a value that is repeated throughout the code and if we want change we only have to change 1 time. In this example we will make the " LEDs " blink and will use a variable called time to blink every second.

You can see that Substituting the time of " delay " by the name of the variable. The block to use as a variable is on the variables menu.

If we wanted that to flicker every half second all we have to do is change the "1000" for "500" instead of having to change in each block.
Example 3:
You can use the variables for practically anything, in this example we will change the color of the LEDs. LEDs are RGB Briko this means they combine 3 colors, R-red (Red), G-green (Green) and B-blue (Blue) you can make any color ignite. To control the intervals of each color ranging from 0-255 use the next block we found on the Briko blocks of LEDs.

Now let's make a code using variables to change each of the colors.

If we send this code to brikos they will turn white because the white is the combination of the 3 colors 255.