1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/Equal.md
2022-12-24 19:12:43 -06:00

17 lines
624 B
Markdown

The **=** condition symbol denotes that a value must equal another value for the condition to be True.
## Example Usage
> IF x = 320 THEN PRINT "Center of screen"
* Statements will evaluate as True or -1 when two values are equal or False or 0 when not equal.
* More than one = symbol in a numerical statement will create a [Boolean](Boolean) evaluation of the ensuing numerical pairs.
> A = B = C will be converted to A = (B = C) so if B = C then A = -1. If not, then A = 0
## See Also
* [Not_Equal](Not-Equal)
* [Greater_Than](Greater-Than)
* [Less_Than](Less-Than)
* [Relational Operations](Relational-Operations)