1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 04:11:20 +00:00
QB64-PE/internal/help/$LET.txt

29 lines
1.1 KiB
Plaintext
Raw Normal View History

[[$LET]] is precompiler command, which is now usable by modern day [[cavemen]] to help include and exclude which sections of code compiles in their program based on OS/bit-size or other predefined conditions.
2016-03-18 11:36:04 +00:00
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: [[$LET]] variable = expression
2016-03-18 11:36:04 +00:00
2017-10-10 14:55:21 +00:00
{{PageDescription}}
* Unlike [[LET]], [[$LET]] is not optional.
* $LET a = 12 sets a precompiler variable "a" to the value of 12. This variable is only valid for the precompiler itself and does nothing to affect the values of any variable/constant which might also be called "a" in the program.
* Variable names can contain numbers, letters, and periods in any order. [[$LET]] '''3.2 = TRUE''' is a perfectly valid variable and expression.
* Expressions can contain one set of leading and/or trailing quotes; and any number of numbers, letters, and periods, in any order. [[$LET]] '''3.2 = "TRUE"''' is also perfectly valid, but [[$LET]] '''3.2 = ""TRUE""''' will error because of the double quotes.
2016-03-18 11:36:04 +00:00
2017-10-10 14:55:21 +00:00
{{PageExamples}}
* See example 1 in [[$IF]].
2016-03-18 11:36:04 +00:00
2017-10-10 14:55:21 +00:00
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[$IF]]
* [[$ELSE]]
* [[$ELSEIF]]
* [[$END IF]]
2017-10-10 14:55:21 +00:00
* [[Cavemen]]
2016-03-18 11:36:04 +00:00
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<