Game Maker Programming/Expressions

< Game Maker Programming

Expressions are comparisons of two things. An example of an expression would be (8 > 6)

Types of Expressions

Expressions can be real number like 6 or 7, 'hexadecimal numbers', strings or more complicated expressions. By default all text is considered a Variables though if the text was in single or double quotes it would be a string. Any number in an expression is considered a real number unless it has a $ sign in front of it. If it had a $ in front of it then it is a 'hexadecimal number'

Operators

An operator is a symbol used for the comparison of two things in an expression. In (8 > 6) the > sign is the operator. There are many different types of operators. For expressions, the following binary operators exist:

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.