Less Than: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The '''<''' condition symbol denotes that a value must be less than another value for the condition to be True. ''Example usage:'' IF x < 320 THEN PRINT "Left of screen" * Statements will evaluate as True or -1 when the first value is less or False or 0 when the first value is equal or greater. * More than one < symbol in a numerical statement will create a Boolean evaluation of the ensuing numerical value. ''See also:'' * = * Not_E...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''<''' condition symbol denotes that a value must be less than another value for the condition to be True.  
The '''<''' condition symbol denotes that a value must be less than another value for the condition to be '''true'''.




''Example usage:'' IF x [[Less_Than|<]] 320 THEN PRINT "Left of screen"
{{PageExamples}}
: IF x [[Less Than|<]] 320 THEN PRINT "Left of screen"




* Statements will evaluate as True or -1 when the first value is less or False or 0 when the first value is equal or greater.  
{{PageDescription}}
* Statements will evaluate as True or -1 when the first value is less or False or 0 when the first value is equal or greater.
* More than one < symbol in a numerical statement will create a [[Boolean]] evaluation of the ensuing numerical value.
* More than one < symbol in a numerical statement will create a [[Boolean]] evaluation of the ensuing numerical value.




''See also:''
{{PageSeeAlso}}
 
* [[Equal|=]]
* [[Equal|=]]
* [[Not_Equal|<>]]
* [[Not Equal|<>]]
* [[Greater_Than|>]]
* [[Greater Than|>]]
* [[Relational Operations]]
* [[Relational Operations]]




{{PageNavigation}}
{{PageNavigation}}

Latest revision as of 00:47, 29 January 2023

The < condition symbol denotes that a value must be less than another value for the condition to be true.


Examples

IF x < 320 THEN PRINT "Left of screen"


Description

  • Statements will evaluate as True or -1 when the first value is less or False or 0 when the first value is equal or greater.
  • 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