-
Notifications
You must be signed in to change notification settings - Fork 6
Printing
Lucas Menezes edited this page Apr 26, 2020
·
5 revisions
The command @ is used to print an expression. The @ behaves differently depending on the type of expression
(byte, short and ints)
@a; @10;
Prints a character; Acts as wrapper of the .
instruction
@ 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