Skip to content

Printing

Lucas Menezes edited this page Apr 26, 2020 · 5 revisions

Printing

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

Integers

(byte, short and ints)

@a; @10;

Char

Prints a character; Acts as wrapper of the . instruction

Strings

@ can print string constants like this:

@"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