Basic programs
Small MiniScript+ programs for output, variables, calculations, and first decisions.
On this page
These examples isolate one concept at a time. Open any block in the editor, run it, and then change its values.
Display two messages
PRINT displays one value per instruction.
PRINT "Hello"PRINT "World"Expected result: Hello, then World.
Store and display a value
The first instruction assigns a number; the second reads it.
score = 5PRINT scoreExpected result: 5.
Calculate a result
Expressions can reuse earlier results.
first = 5 + 3result = first * 2PRINT resultExpected result: 16.
Expected output:
16Make a decision
The block runs only when the condition is true.
value = 10IF value > 5 THEN PRINT "Large"ENDExpected result: Large.
Change
valueto3and run the program again. No message is displayed because the condition becomes false.
What to change
Change an initial value, predict the output, then run again. Assignment changes state; PRINT only displays a value. Without INPUT, all data already comes from the code. Read variables and operators.