Greater Than: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:




''Example usage:'' IF x [[Greater_Than|>]] 320 THEN PRINT "Right of screen"
''Example usage:'' IF x [[Greater Than|>]] 320 THEN PRINT "Right of screen"




Line 12: Line 12:


* [[Equal|=]]
* [[Equal|=]]
* [[Not_Equal|<>]]
* [[Not Equal|<>]]
* [[Less_Than|<]]
* [[Less Than|<]]
* [[Relational Operations]]
* [[Relational Operations]]




{{PageNavigation}}
{{PageNavigation}}

Revision as of 01:54, 24 January 2023

The > condition symbol denotes that a value must be greater than another value for the condition to be True.


Example usage: IF x > 320 THEN PRINT "Right of screen"


  • Statements will evaluate as True or -1 when the first value is greater or False or 0 when equal or the first value is less.
  • More than one > symbol in a numerical statement will create a Boolean evaluation of the ensuing numerical value.


See also:



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link