1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/Expression.md
2022-12-24 19:12:43 -06:00

737 B

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