Your input records
Choose invented values from 0 to 9. An empty batch is a useful test. No names or real personal information.
Your programme
SET starts a total. ADD changes it. FOR EACH uses every record. IF chooses a body. SHOW displays the current total.
Put input instructions inside FOR EACH. Fill both IF bodies. Nothing is filled for you.
Blank workspace. Choose your first block.
What actually ran
Each row shows a record, a decision and the total before and after. Changes clear the old run. A stopped or incomplete run has no completed result. On a small screen, scroll the table sideways to read every column.
| Step / block | Record / input | Action / branch | Total before → after |
|---|
Try a useful change
Change a record, a threshold or a block. Predict what will change, then run again and inspect. No progress is saved after closing or reloading this page.
Use keyboard Tab and the labelled buttons or your usual access support. Paper planning can help; record who actually entered and changed blocks.
Limits: 12 input records; 48 blocks; nesting 3; 256 executed operations; total 0–999. These are this tool's limits.
For a teacher or familiar adult
Choose one plan, one model and one response route from the pack. Check the locally approved device and usual access support before learner use. On a separate adult example, add SET, fill its start, add SHOW and run; reset to blank before the learner chooses their own purpose and blocks. This demonstration is adult work.
Ask what the total means, which input or block they chose, and how one trace row compares with their prediction. An unfinished programme or one meaningful first component is enough to discuss. SET inside FOR EACH resets every record; ADD needs an earlier SET. Current input and IF belong inside FOR EACH, and both IF bodies need instructions. Moving between bodies requires remove/add; the tool does not move blocks across bodies automatically.
Changes, Stop and Reset clear old results. Run the current version again to inspect it. Closing or reloading loses work. Record who actually created, entered, changed and ran the blocks; child decisions, adult device actions and planned traces are different evidence. Keep fresh E/F sources and the separate key out of practice until first capture.
Open the complete teaching pack (README.md, Markdown text, new tab). It links all lessons, learner guidance, free home offers, print alternatives, source mapping and separate staff material. The new tab leaves this programme open. The tool is unpiloted and does not supply a whole band or verified access compatibility.
For home play
Invent a harmless collection or enjoy a tiny total puzzle. Let the learner choose what the start and total mean. Compare replacing a number with adding to it, or choose two invented records and follow their contributions. Explain, point, sign, use your usual communication aid or scribe; no written quota or returned work is required.
Every home offer in the complete pack stands alone. Extras are optional, not catch-up. No purchase, printer, device, account, real family details, public sharing or recording is needed. Stop, skip or return when wanted. Device creation and running require actual locally approved access; an imagined run remains a prediction.
Describe or trace your own rule
Choose a pretend user and one criterion, such as including your chosen start once. Make your own ordered SET, ADD and SHOW instructions, or group an ADD inside FOR EACH. Choose a small fictional batch. Trace every chosen record and the total before and after each instruction, in words, a table or your usual communication.
Compare your planned result with your purpose. Change one start, input, instruction or threshold and trace again if useful. For three outcomes, nest the second IF in ELSE so only one chosen update applies per record. A willing adult may follow or scribe your directions; name that help. This complete paper route supports design and reasoning, with digital implementation left open until it actually happens.