# Unit 6 Toggle Switch

**URL:** <https://forum.code.org/t/unit-6-toggle-switch/32383>\
**Category:** CS Discoveries\
**Created:** [March 4, 2020, 3:16pm UTC](https://forum.code.org/t/unit-6-toggle-switch/32383 "2020-03-04T15:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarah.dudley](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@sarah.dudley](https://forum.code.org/u/sarah.dudley)\
**Post date:** [March 4, 2020, 3:16pm UTC](https://forum.code.org/t/unit-6-toggle-switch/32383/1 "2020-03-04T15:16:05Z")

</div>

I have a student who is trying to create game that allows the user to switch between screens with the toggle switch. He would like it to be on screen 1 if the toggle switch is open, otherwise be on screen 4. He would also like to be able to switch between the screens while playing the game simply by opening and closing the toggle switch. Is this possible? Please see his code below. Thanks in advance.

> **[Check out what I made](https://studio.code.org/projects/applab/CxOut0Fep0v_Y3iQnN-mh72ED5TaApNKT8MaX2gC91g)**
>
> I wrote the code myself with Code.org
