Skip to content

Boolean evaluation doesn't support ! (not operator) #7

@rdbell

Description

@rdbell

Assume someValue = true...

These all evaluate to true:

if someValue

if !someValue

if someValue == true

if someValue == false

Is this expected behavior? How can I check if a bool is false without using an else statement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions