Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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