BruceSherwood/glowscript

(-1 < 0) == (1 < 0) is True

Closed this issue · 2 comments

link
code

GlowScript 2.7 VPython
print((-1<0),(1<0),(-1 < 0) == (1 < 0))
if (-1 < 0) == (1 < 0) is True:
    print('hi')
x=(-1<0)
y=(1<0)
print(x,y,x == y)

optput

true false true
hi
true false false

Thanks for the clear error report. I've passed this on to the RapydScript-NG developer (RapydScript-NG is used by GlowScript VPython to convert Python to JavaScript).

Fixed. Kovid Goyal, the developer of RapydScript-NG is incredibly fast in dealing with bugs.