You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During a Pull Request Brucey asked to add Then to if-statements.
The (current) Beginners Guide writes this:
When to use Then? You can put it after your If expression. The use of Then, is not required and I think the code is just as easy to read without Then. Like this, If A = 1 Then B = 2 is equal to If A = 1 B = 2. If you take a BlitzMax file and delete all Then, it will run the same. Use Then if you think it helps you read the code. When I use then, then it is to make an ifstatement on one line more readable, like in the example above and in the example below. My advice is, never use then if your if-statement is not on one line.
During a Pull Request Brucey asked to add
Then
to if-statements.The (current) Beginners Guide writes this:
(source: https://blitzmax.org/docs/en/tutorials/beginners_guide/)
Maybe we should update that part to fit to the way we write the docs/examples.
Right below that quote you will find a attention/notice-box:This is not true with NG - as NG understands the new typeBool
.The text was updated successfully, but these errors were encountered: