-
Notifications
You must be signed in to change notification settings - Fork 1
Printing
LucasMW edited this page Jan 19, 2017
·
1 revision
The command @ is used to print an expression. The @ behaves differently depending on the type of expression
@i;
@1;
@fval;
@1.0;
@c;
@str[0];
@'\n' as char;
@ 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