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
A minimal console program that prints a message.
This sample shows how to write and run a simple thinBasic script that prints text to the console and waits for a key press.
Uses "Console"
' Print a welcome message
PrintL "Hello from thinBasic!"
' Wait for the user to press a key
WaitKey Copy the code, paste it into thinAir and press F5 to run it.