2.4.1 How it works
An identifier starts with a letter (including ñ, accented vowels and ü) or an underscore. After that it may continue with letters, digits or underscores. A single-letter name is valid.
Two boxes joined by an arrow: the first character, which may be a letter, ñ, an accented vowel or an underscore, and the following ones, which also accept digits and may repeat. Below, four valid names in green and three invalid ones in red.
Names are compared exactly: edad and Edad are two different variables, just like ano and año. Reserved words, on the other hand, ignore case: writing them in lower or upper case makes no difference.
ProgramNames that look alike
Algorithm Nombres
Define edad As Integer <- 1;
Define Edad As Integer <- 2;
Define año As Integer <- 2026;
Define _total1 As Integer <- edad + Edad;
Write edad, " ", Edad, " ", año, " ", _total1;
EndAlgorithmOutput
1 2 2026 3
The program finishes normally.
In short
- Starts with a letter or underscore; continues with letters, digits or underscores.
- ñ, accents and ü are allowed.
- Names distinguish case and accents; reserved words ignore case.