Expression - QB64 Wiki

Expression

From QB64 Wiki

Jump to: navigation, 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:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version