Assignment

Hi everibody,
i have a problem in this block of code:

error = 0
R1 = 0; R2 = 0; R3 = 0; R4 = 0; R5 = 0; R6 = 0

print “5\n”, error

if error =! 0
error = 1
print "
"
print "


"
print "Sorry"
print "
"
end

print “6\n”, error

At the end “error” is “false” and not ‘0’ or ‘1’.
Why?

Regards.
Massimo

···


E impari che puoi davvero sopportare,
che sei davvero forte,
e che vali davvero.


HomePage: http://spazioinwind.iol.it/arnaudo
LinuxGroup: http://lugge.ziobudda.net

Hi,

Hi everibody,
i have a problem in this block of code:

error = 0
R1 = 0; R2 = 0; R3 = 0; R4 = 0; R5 = 0; R6 = 0

print “5\n”, error

if error =! 0
^^
Did you mean != … (not-equal, as opposed to equal not?)
error = !0 # assigns ‘false’ to error :slight_smile:

Hope this helps,

Bill

  • Bill Kelly billk@cts.com [venerdì 18 ottobre 2002, alle 05:43]:
       ^^

Did you mean != … (not-equal, as opposed to equal not?)
error = !0 # assigns ‘false’ to error :slight_smile:

Hope this helps,

Bill

Thanks Bill,
not it works.

Best Regards
Massimo

···


E impari che puoi davvero sopportare,
che sei davvero forte,
e che vali davvero.


HomePage: http://spazioinwind.iol.it/arnaudo
LinuxGroup: http://lugge.ziobudda.net

  • Bill Kelly billk@cts.com [venerdì 18 ottobre 2002, alle 05:43]:
       ^^

Did you mean != … (not-equal, as opposed to equal not?)
error = !0 # assigns ‘false’ to error :slight_smile:

Hope this helps,

Bill

Thanks Bill,
not it works.
^^^^^^
Hemm, NOW it works!

Ciao
Massimo

···


E impari che puoi davvero sopportare,
che sei davvero forte,
e che vali davvero.


HomePage: http://spazioinwind.iol.it/arnaudo
LinuxGroup: http://lugge.ziobudda.net