Mintoris Forum

Author Topic: True, False and Global Constants  (Read 1420 times)

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
True, False and Global Constants
« on: Mar 06, 2016, 06:20 PM »
In the next release the constants True and False will now be reserved system constants. True = 1 and False = 0. They are not case sensitive. If you are using these as variable names you will get an error message. Just delete the assignments in your source code and your program should run as normal.

On and Off now work the same as True and False. On = 1 and Off = 0.

pause = on
do while pause
  wait 1000
loop


There will also be a new command in the next release to create Global Constants.

Const width = 800
Const height = 480

width and height would become global constants. they would be available throughout your program and they can not be modified after the first execution of the const.

If you are beta testing, these changes will be in tonights release.
« Last Edit: Mar 06, 2016, 06:25 PM by Chuck »