Practice
Write Common, press Run, see what the visitor would see. Nothing you type can touch the server.
Lesson 4Decide with if, otherwise, end. Change something and press Run. When it feels familiar, take the next lesson or try the exercises.
Hint
Set temperature to 5, then to 20, and watch which line runs.
Press Run to see the result here.
The three rules, and that is all of them
- Every line starts with a command:
show,set,if,for each,repeat… - A value goes inside text in brackets:
show "Hello, [name]" if,for each,repeat,to, and ashowon its own, own the lines below them, up to a line that saysend.
How this page runs your code safely
set program to form "code" set result to try program if result contains "Hello, World!" show "✓ That does it." end
try runs text as Common with files, the database, cookies and redirects switched off, and stops after 20,000 steps or 64 MB of memory. The result is shown inside a sandboxed frame, so even HTML you write stays inside its box.