Skip to content

Ternary Operator Expression Error #11

@pavelicious-dev

Description

@pavelicious-dev

Me again :)

I found an issue regarding the evaluation of ternary operator expressions:

5 == 5 ? 4 : 1 results in 4, good
1 == 1 ? 1 : 0 results in 1, good
0 == 0 ? 0 : 1 results in 1, unexpected; apparently 0 is not equal to 0

just 0 == 0 results in true though, so it must be something with the ternary operator

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