This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nicon4454's profile picture

Need help with if statment

Started by nicon4454, 17 March 2015 - 07:02 PM
nicon4454 #1
Posted 17 March 2015 - 08:02 PM
I keep getting then expected but it is clearly there



if rfchange => 0 then
rgreen()
elseif rfchange < 0 then
rred()
end

http://pastebin.com/raw.php?i=AKZK4NC7
Edited on 17 March 2015 - 07:08 PM
The_Cat #2
Posted 17 March 2015 - 08:13 PM
"=>" is not an operator.

Replace it with ">="

Just a little mistake :)/>
Edited on 17 March 2015 - 07:15 PM
nicon4454 #3
Posted 17 March 2015 - 09:01 PM
Thank you so much i can not believe i did that.