← Construct apps

A chores checklist

Build a checklist where clicking a box ticks it, and clicking again unticks it. Two separate events with the same trigger both run on one click and undo each other, so the toggle is one event with a sub-event and an Else: one trigger, two branches, and only one branch runs.

A tick box looks like the simplest thing on a screen. Making one that turns on and off shows how apps choose between two things to do.

Today's prototype is a list of jobs, each with a box beside it. Click the box and it shows a tick. Click again and the tick goes.

A Construct Button can be the box: its text is just an empty-box character, ⬜, and an event changes it to a tick, ✅.

The chores checklist: a title "My jobs today" and three jobs, each with a box beside it. Two are ticked.

How this lesson works: Predict, Try, Investigate, Modify, Make
PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.

Two events, one click

When (condition) Do (actions)
BedBox: on clicked · BedBox: text is "⬜" BedBox: set text to "✅"
BedBox: on clicked · BedBox: text is "✅" BedBox: set text to "⬜"
The box shows ⬜. These two events are the only ones on the sheet. You click the box once. What does it show?

TryTry it on the board and compare the result with your prediction.

Try it: two events, one click

This is the version from the prediction. Watch the event sheet: which rows light up on one click?

Try it yourselfYour edits are saved in this browser.

This version has two separate On clicked events. Click a box a few times and watch both events light up.

Use the board. This ticks when you get there.

TryTry it on the board and compare the result with your prediction.

Build it: the checklist

Make the screen

  1. Start a New project called Chores checklist.
  2. Insert a Text object at the top with the text My jobs today.
  3. Choose three jobs. Insert a Text object for each one, in a column, such as Make my bed.
  4. Insert a Button beside the first job. Set its Text to ⬜ (copy it from here) and its Name to BedBox. Make it a small square.
  5. Add a button beside each other job the same way, with names that match, such as FeedBox and HomeworkBox.

A tick that stays on

  1. In the event sheet, add BedBox, On clicked. Add the action BedBox, Set text, and type "✅".
  2. Preview and click the box. It ticks. Click again: it stays ticked.

Try two events (and watch them cancel)

  1. Add a condition to that event: right-click it, Add another condition, BedBox, Compare text, and type ⬜.
  2. Add a second event the same way, but checking for ✅ and setting the text to ⬜.
  3. Preview and click. Nothing seems to happen. That's your prediction.

One event, two branches

  1. Delete both events. Add one event: BedBox, On clicked, with no other condition and no action.
  2. Select it and press S to add a sub-event. Give the sub-event the condition BedBox, Compare text, ⬜ and the action Set text to ✅.
  3. Select the sub-event and press X to add an Else below it. Give the Else the action Set text to ⬜.
  4. Preview. Click to tick, click again to untick. Then do the same for the other boxes.

Your event should look like this:

When (condition) Do (actions)
BedBox: on clicked
↳ BedBox: text is "⬜" BedBox: set text to "✅"
↳ Else BedBox: set text to "⬜"

InvestigateWork out why it happens, one step at a time.

Which branch runs?

With the sub-event and Else, the box shows ✅. You click it once. What happens?

Nib's box won't untick properly. Click the line where Nib first goes wrong.

A Button's Type can be set to Checkbox, which ticks and unticks by itself. Why build it with events here?

ModifyChange the problem on purpose and see what happens.

Count what's done

Add a global variable Done and a Text object called DoneText. In each box's ⬜ branch add 1 to Done; in each Else subtract 1. Then set DoneText to "Done: " & Done & " of 3" in both branches.

A global variable Done counts ticked jobs. Where does "add 1 to Done" go in the BedBox event?

MakeMake your own problem using what you have learned. Expect a few tries; that is normal.

A checklist for someone

Make a checklist for someone you know: a packing list, a morning routine, or jobs for a club. Use their words for each job. Add a Reset button that unticks everything and sets Done to 0.

Then watch them use it without helping. What did they expect to happen that didn't?

Now you can
Next lesson3. A water trackerBuild a water tracker with a goal: add a glass, reset the day, and see a message and a progress bar. An Every tick event keeps the display in step without setting the text in every button's event. A condition that isn't a trigger, such as Compare variable, is checked every tick, and an action only waits for a sub-event's condition if it sits inside that sub-event.
For teachers

Students build a checklist of jobs where each box is a Button whose text is ⬜ or ✅. They first build a tick that stays on, then try two separate On clicked events (which cancel each other on one click), then fix it with one On clicked event, a sub-event and an Else. About 60 minutes.

Open the teacher guide: answers, solutions, slides and a worksheet.

Students will be able to

Before class

The box characters ⬜ and ✅ are emoji. On most laptops they paste fine into a Button's Text property; if a laptop shows empty squares, use [ ] and [x] instead, and change the conditions to match.

Keyboard shortcuts in the event sheet: S adds a sub-event, X adds an Else, B adds a blank sub-event (no condition). Select the event first.

These steps were written fresh for this site and have not yet been checked click by click in the current editor. Run through them once before class; Construct updates itself, so a menu name may differ slightly.

A Button's Type property can be Checkbox, which ticks and unticks by itself (On checked, On unchecked). Mention it, but the lesson builds the toggle by hand so the logic is visible.

The one idea: on one click, every event whose conditions are true runs, top to bottom. One trigger with two branches (a sub-event and an Else) means exactly one runs.

Running the lesson

  1. Predict: most choose ✅. Leave it open; step 10 is the reveal.
  2. Build it: at step 10, ask a pair to explain what happened in order: first event, then second event.
  3. Investigate: draw the event on the board with the two branches as arrows. Only one arrow is taken per click.
  4. Modify: this is the review step. Ask which branch means 'just finished a job'.

The hard part (on purpose)

Building the version that doesn't work on purpose (steps 8 to 10) feels like wasted effort, and some students skip it. It's the point of the lesson: they need to see two flat events cancel before the sub-event makes sense.

When students get stuck

Stretch and support

Stretch: Show "All done!" when Done equals the number of jobs. Which event checks it, and when?

Support: Give pairs the finished event as a picture (the table at the end of Build it) to copy, then ask them to explain each row.

Where it leads

Next: Water tracker, which keeps a display up to date every tick and checks a goal.

What each step is for