Skip to content

What is !"".isEmpty? #1630

Open
Open
@whyamsx

Description

@whyamsx

Checklist

  • I am reporting an issue in existing functionality that does not work as intended
  • I've searched for existing GitHub issues

Description

This is not the first time I have seen conditions like this in the source code: "".isEmpty or !"".isEmpty (example here).
Help me understand what this means and what it is for?

Yes, I created this question here because otherwise this secret cannot be solved.

Expected Behavior

At least something logical *literally at this moment I felt cognitive dissonance*

Actual Behavior

Obviously something is weird because this condition cannot be variable, the same as writing true or false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions