I`m having a problem with my code, can you please help me?

Please post the code and error messages inside (separate) code tags. See the button that looks like </> in the full editor.

if {csM1 = csM2 && (FORWARD);} //se ambos forem iguais a preto entâo avançar

This does not look like any other if() statement anywhere. Can you see what is wrong?