THEN: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "'''THEN''' is required in IF...THEN conditional evaluation statements. {{PageSyntax}} :: IF condition THEN execute_code * THEN is required on the same code line as the IF statement. * The condition value must be true(-1) or <> 0 for the statement code to be executed. ''See also:'' * IF...THEN * ELSE, ELSEIF * END IF {{PageNavigation}}")
 
No edit summary
 
Line 1: Line 1:
'''THEN''' is required in [[IF...THEN]] conditional evaluation statements.
'''THEN''' is required in [[IF...THEN]] conditional evaluation statements.




{{PageSyntax}}
{{PageSyntax}}
:: IF condition THEN execute_code
: IF condition THEN execute_code




{{PageDescription}}
* THEN is required on the same code line as the IF statement.
* THEN is required on the same code line as the IF statement.
* The condition value must be true(-1) or <> 0 for the statement code to be executed.
* The condition value must be true(-1) or <> 0 for the statement code to be executed.




''See also:''
{{PageSeeAlso}}
* [[IF...THEN]]
* [[IF...THEN]]
* [[ELSE]], [[ELSEIF]]
* [[ELSE]], [[ELSEIF]]

Latest revision as of 01:16, 29 January 2023

THEN is required in IF...THEN conditional evaluation statements.


Syntax

IF condition THEN execute_code


Description

  • THEN is required on the same code line as the IF statement.
  • The condition value must be true(-1) or <> 0 for the statement code to be executed.


See also



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