Samples Console Hello from thinBasic

Hello from thinBasic

A minimal console program that prints a message.

Beginner Console Uses: Console

Overview

This sample shows how to write and run a simple thinBasic script that prints text to the console and waits for a key press.

What you’ll learn

  • How to load the Console module
  • How to print text to the console
  • How to wait for user input

Code

Uses "Console"

' Print a welcome message
PrintL "Hello from thinBasic!"

' Wait for the user to press a key
WaitKey
Try it yourself

Copy the code, paste it into thinAir and press F5 to run it.