Skip to content

Beginners guide outdated #19

@GWRon

Description

@GWRon

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.

(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:

BlitzMax doesn't have Boolean variables which only accepts True or False.

This is not true with NG - as NG understands the new type Bool.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions