NASutils Knowledge BaseUnofficialPolski

BASIC · lesson 1 of 30 · First steps · bonusPrint a line

print writes a text on the screen. yabasic runs the program straight from the file.

Programming on the NAS › BASIC in 30 lessons

01-hello.yab Download 01-hello.yab

print "Hello from the NAS"

Terminal

$ yabasic 01-hello.yab
Hello from the NAS
$ yabasic -e 'print "Hello from one line"'
Hello from one line

Exercise

Print your own name on the second line.