0

The script is not working

x = 18 y = gets if y = x print "ok" end if y < x print "no" end if y > x print "no" end Shauld give no or ok, but give always a ok

2nd May 2019, 2:55 PM
makz
makz - avatar
5 ответов
+ 7
But its string So convert it to int
2nd May 2019, 3:14 PM
Rstar
Rstar - avatar
+ 6
Replace y=x by y==x
2nd May 2019, 3:06 PM
Rstar
Rstar - avatar
+ 6
And make sure y is in integer form
2nd May 2019, 3:08 PM
Rstar
Rstar - avatar
0
y should be set by gets
2nd May 2019, 3:14 PM
makz
makz - avatar