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


Answer:

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
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
smileBASIC
Help, References, and Tutorials

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