Example

Playing with all variable types

str, schar, boolean — defined, then created with new and redefined.

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

define str x is "Hello";
define schar c is '3';
define str y is "World";
define boolean zeroOrOne is true;

define str x2 is new;
define schar c2 is new;
define str y2 is new;
define boolean zeroOrOne2 is new;

redefine x2 is "Hello";
redefine c2 is '3';
redefine y2 is "World";
redefine zeroOrOne2 is true;

showln zeroOrOne;
showln x;
showln c;
showln y;

showln zeroOrOne2;
showln x2;
showln c2;
showln y2;