Expression: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "A '''expression''' is a calculation used as a argument or assignment and can be a numerical or string expression. Expressions may include logical operators as well as mathematical operators and functions and are used in various forms in a program. '''Examples of different kind of expressions:''' ''Numerical expressions:'' ('''1000''' is the expression) {{CodeStart}} {{Cl|PRINT}} 1000 {{CodeEnd}} {{OutputStart}} 1000 {{OutputEnd}} ('''1 + 1''' is the express...")
 
No edit summary
Line 23: Line 23:




('''1 + 1''' is the expression)  
('''1 + 1''' is the expression)
{{CodeStart}}
{{CodeStart}}
{{Cl|PRINT}} 1 + 1
{{Cl|PRINT}} 1 + 1

Revision as of 01:36, 23 January 2023

A expression is a calculation used as a argument or assignment and can be a numerical or string expression.


Expressions may include logical operators as well as mathematical operators and functions and are used in various forms in a program.



Examples of different kind of expressions:


Numerical expressions:


(1000 is the expression)

PRINT 1000
 1000


(1 + 1 is the expression)

PRINT 1 + 1
 2



String expressions:


("hello!" is the expression)

PRINT "hello!"
hello!


("Hello" + " " + "there!" is the expression)

PRINT "Hello" + " " + "there!"
Hello there!




See also



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