Skip to content

[BUG] "while" script expression seems to be wrong (condition must be negated to work) #246

@rud01f

Description

@rud01f

Using Classic UO, Razor v1.9.77.0

I wrote a script of this matter (expected infinite loop):

while (1 == 1)
    skill 'hiding'
    wait 11000
endwhile

While I expected while loop to run indefinitely, I was surprised to see every time I ran it "script finished in 30ms".
I've negated the condition while (1 != 1) and now script runs in the loop properly.

I'm pretty sure it's a bug since the manual says "while: run loop as long as the expression remains true"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions