Skip to content

Question about truth value evaluation #253

@orlof

Description

@orlof

Is it allowed to evaluate truth values without comparison operators? e.g.

DIM B AS BYTE
B = 0

IF B THEN
    PRINT "true"
ELSE
    PRINT "false"
END IF

(B=0 should print "false" and b<>0 should print "true")

or should it always have comparison operator e.g.

DIM B AS BYTE
B = 0

IF B<>0 THEN
    PRINT "true"
ELSE
    PRINT "false"
END IF

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions