# Student Handout — Adding Conditional Logic to Your Twine Game

- Link: https://doss.academy/course-2-game-design-development-principles/unit-5-game-design-storytelling-nonlinear-narratives/lesson-10-adding-conditional-logic-to-your-twine-game-c2u5l10/student-handout/
- Published: 2026-11-03T15:41:30-05:00
- Author: matthew.leffler@jefferson.kyschools.us

Course 2: Game Design & Development Principles / Unit 5: Game Design Storytelling&
Nonlinear Narratives / Lesson 10: Adding Conditional Logic to Your Twine Game

## Conditional Logic Planner

Name: ____________________ Date: ____________________

## My variable

  |  Variable name (starts with $) |  Starting value |  Passage where it changes |  New value |  
   |  $__________ |  __________ |  __________ |  __________ |  
 |  $__________ |  __________ |  __________ |  __________ |

## My condition

Passage where I check the variable: ______________________

**If** ______________________ **then** the player sees ______________________

**Else** the player sees ______________________

## Write the Harlowe code

________________________________________________________________

________________________________________________________________

________________________________________________________________

## Test both paths

  |  Path I played |  Value of my variable |  What I saw |  Correct? |  
   |  __________ |  __________ |  __________ |  ☐ |  
 |  __________ |  __________ |  __________ |  ☐ |

## Before you leave

 * ☐ My variable has a starting value in my first passage.
 * ☐ A player choice changes my variable.
 * ☐ I used (if:) and (else:) in a later passage.
 * ☐ I played both paths and each outcome showed when it should.
 * ☐ I exported my story and saved it to Google Drive.

## Resources

 * [Twine (twinery.org) (opens in a new tab)](https://twinery.org/)
 * [Harlowe manual (opens in a new tab)](https://twine2.neocities.org/)
