Program1031.comTM
Game Programming Help for Beginners!
Home Questions and Answers Physical and Digital Books

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 Maker: Studio
Help, References, and Tutorials
RPG Maker Fes
Help, References, and Tutorials
smileBASIC
Help, References, and Tutorials

Physical and Digital Books
Search Physical and Digital Books at Program1031.com

Home Questions and Answers Email Newsletter
Watch our YouTube channel
Content and Design © 2012-2025 Program1031.com. All Rights Reserved. | Privacy Policy | Terms of Service
All Copyrights and Trademarks of mentioned products are copyrights and trademarks of their respective owners.

As an Amazon Associate and ChristianBook.com Affiliate, Breakthrough Gaming LLC earns a commission on qualifying purchases from Amazon.com and ChristianBook.com through our website. Thank you for your purchases!