Example

Loops

while, for, and forevery over a string array.

Save this as a .alana file, then alana filename.alana. And start coding cute.

define num x is 0;

while x lessthan 5;
    showln x;
    redefine x is x + 1;
end;

showln;

for(define num i is 0, i lessthan 5, redefine i is i + 1);
    showln i;
end;

showln;

define str[] names is ["Ahsoka", "Yoda", "Kenobi"];

forevery(define str name within names);
    showln name;
end;