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

if and if/ if not and if not

Started by gsgrego, 28 June 2013 - 04:22 PM
gsgrego #1
Posted 28 June 2013 - 06:22 PM
Really confused as I cannot get this to workif not turtle.detect() and if not turtle.compare() then

It keeps returning a unepexted symbol error and so I tried taking out the nots and I still got a the same thing.
Lyqyd #2
Posted 29 June 2013 - 12:15 AM
Split into new topic.

One if per conditional statement, even if it's a compound conditional:


if not turtle.detect() and not turtle.compare() then
gsgrego #3
Posted 29 June 2013 - 12:18 AM
Split into new topic.

One if per conditional statement, even if it's a compound conditional:


if not turtle.detect() and not turtle.compare() then

Ah ok so thats what i screwed up. Thank you.