Skip to content

indexOf() returning wrong value in compound statement #4269

@richw8341

Description

@richw8341

The expression if(n=indexOf.someString("text")>=0)..........
will not return the correct index of "text"

This expression does work

                      n=indexOf.someString("text");
                      if(n>=0)............

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions