1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 08:51:22 +00:00
qb64/internal/help/Underscore.txt

29 lines
1.1 KiB
Plaintext
Raw Normal View History

An '''underscore''' can be used at the end of a line of code to continue a code line to the next line.
2021-04-25 22:40:25 +00:00
{{PageSyntax}}
2021-04-25 22:40:25 +00:00
::IF x + y > 500 AND x + y < 600 THEN_
:::PRINT x + y
2021-04-25 22:40:25 +00:00
{{PageDescription}}
2016-03-18 11:36:04 +00:00
* 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.
2021-04-25 22:40:25 +00:00
* Comments cannot follow an underscore and are not continued on the next line if they end in an underscore.
* 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.
2016-03-18 11:36:04 +00:00
* 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]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}