Do I Need to Use a Single Equal Sign or a Double Equal Sign when Coding in Game Maker?


Most programming languages use a single equal sign ( = ) and double equal signs (==) when declaring and comparing variables. Each one has specific rules for each use. Game Maker does too!

When comparing variables in if statements, you can use either single or double equal signs. (See image above)

When declaring or changing variables, use a single equal sign. (See image above)

If you use a double, you'll get an error! (See image above)

Page updated: March 23rd, 2015 @ 6:21 AM Eastern Time
To help organize our content, all of our game creation tutorial content is moving to our other site:
The move will take about two months to fully complete, so stay tuned!

Game Making Tutorials
Find tutorials about your favorite game creation software! Use the navigation below!

Game Maker: Studio
Help, References, and Tutorials
RPG Maker Fes
Help, References, and Tutorials
Help, References, and Tutorials

Need Help?
Search answers to game development questions or ask a question yourself
Get exclusive updates from!
Join the Email List
Download Books
Search Downloadable Books from
Copyright 2010-2018
All Rights Reserved.