PRINT

Syntax:

print <any expression or string> [, <any exrpession or string>, ...]

The PRINT command prints strings or numbers (values of any expression) on the screen using the KERNAL CHAROUT routine. Any number of arguments are accepted. The arguments must be separated with a comma (,). A RETURN character ($0D) will be printed after the last printed value.

Examples:

print "hello world"
print "the value of myvar is ", myvar, " and that of anothervar is ", anothervar
print "let's print the value of an expression: ", (486 + y) * 3

ASCII strings will be converted to PETSCII in compile-time.

Discussion

Enter your comment. Wiki syntax is allowed:
O N C O O
 
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies