Skip to content

Printing

LucasMW edited this page Jan 19, 2017 · 1 revision

Printing

The command @ is used to print an expression. The @ behaves differently depending on the type of expression

Ints

 @i; 
 @1;

Floats

@fval;
@1.0;

Chars

@c;
@str[0];
@'\n' as char;

Strings

@ can print values with type char[] like strings

@"Hello World!\n";

Will result

$ Hello World!

strings accept the special character \n \t and \

  • \n is line break
  • \t is tabulation space (tab)
  • \ will result a normal \

Printing can always be combined like this:

 v=1;
 @"The value of variable v is "; @v; @"\n";

Result:

$The value of variable v is 1

Clone this wiki locally