Variables

Variables are places that store values.

We can declare a variable using መለያ keyword

መለያ ስም;

where ስም is the identifier of the variable. Identifiers can be any string of Latin letters, Amharic letters and underscores not beginning with a digit and not being a reserved word. as mentioned in Lexical Conventions.

every variable is assigned to nil (ባዶ) value, unless you explicitly pass the value.

መለያ ስም;
መለያ ሌላ_ስም = ባዶ;

here both ስም and ሌላ_ስም are nil (ባዶ).

መለያ ስም;
መለያ ሌላ_ስም = ባዶ;
ስም = 1; 

here i assigned 1 to ስም, now the value is 1.

There are two types of variables in ahadu: global variables and local variables.

A global variable is a variable that is declare outside of any block (scope). and is accesible from any block (scope).

A local variable is a variable that is accessible from only the block (scope) where it is declared.