Controlling LEDs with 4 ultra sonic sensors

Hi there,

Thanks so much for your response, I am so pleased to be in touch with someone who knows what they are talking about!

I am unfortunately having a problem with the code, perhaps you could help me? please see error message below:

allsensorfeedback:38: error: expected unqualified-id before 'if'
allsensorfeedback:40: error: expected unqualified-id before 'if'
allsensorfeedback:42: error: expected unqualified-id before 'if'
allsensorfeedback:44: error: expected unqualified-id before 'if'
allsensorfeedback:51: error: expected unqualified-id before 'if'
allsensorfeedback:55: error: expected unqualified-id before 'if'
allsensorfeedback:59: error: expected unqualified-id before 'if'
allsensorfeedback:63: error: expected unqualified-id before 'if'

what do you think, might be the problem?

Thanks,

Aphra