1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 15:50:25 +00:00
qb64/internal/help/Underscore.txt
2021-02-28 11:47:33 -03:00

25 lines
952 B
Plaintext

An '''underscore''' can be used at the end of a line of code to continue a code line to the next line.
''Usage:'' IF x + y > 500 AND x + y < 600 THEN_
:::PRINT x + y
* The underscore can be anywhere after the code on that line to continue the code to the next line in QB64.
* Multiple underscores can be used for the same line of code.
* Modern QB64 keywords are preceded by an underscore, unless [[$NOPREFIX]] is used. Variables and user procedures names cannot start with a single underscore.
** Variables and user procedures names can be preceded by double underscores if necessary.
* Underscores can be used in the middle of variable, sub procedure or [[CONST|constant]] names.
* In [[PRINT USING]] an underscore can precede a formatting character to display that character as literal text in a template [[STRING]].
{{PageSeeAlso}}
* [[Colon]], [[Comma]], [[Semicolon]]
* [[IF...THEN]]
* [[$NOPREFIX]]
{{PageNavigation}}