Skip to content

Docs: if item not in items #3281

@Soviut

Description

@Soviut

I discovered that

if not item in items
    items.push item

Doesn't work. I discovered that the syntax was

if item not in items

But shouldn't my original expression still work? Shouldn't the not still negate the item in items boolean result? I realize my original may not read as nicely, but both make logical sense.

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