Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ifthenelse [2019/07/15 10:16] – neils | ifthenelse [2019/07/15 10:17] (current) – neils | ||
---|---|---|---|
Line 27: | Line 27: | ||
Please refer to the [[operators|Operators]] page for the list of supported operators. | Please refer to the [[operators|Operators]] page for the list of supported operators. | ||
- | |||
- | Since version 1.2, multiple statements can be written in one line using the statement separator character ('':'' | ||
- | |||
- | if x = y then ~ | ||
- | print "the numbers are equal" : ~ | ||
- | print " | ||
- | eq = 1 ~ | ||
- | else ~ | ||
- | print "the numbers are not equal" : ~ | ||
- | eq = 0 | ||
- | |||
- | The above is technically a single line in **XC=BASIC**. | ||
- | |||
- | Note that no other characters are allowed after the '' | ||
====== Performance tip ====== | ====== Performance tip ====== | ||
An '' | An '' |