Expression

From QB64 Wiki
Revision as of 06:14, 11 November 2010 by imported>Cyperium (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 mathemati…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:
Keyword Reference - Alphabetical
Keyword Reference - By usage
Main WIKI Page