Go Down

Topic: Not declared in this scope? (Read 553 times) previous topic - next topic

irethedo

I have the following code and I am getting
the following message when I compile:


Quote
In Function 'void loop()':
error: 'If' was not declared in this scope


Here's my code:
Quote
#include <Wire.h>
#include <string.h>
#include <stdio.h>

int RS = 0;

void loop ()
{
    If (RS < 127)  RS = 0;
}

--------------------
What am I doing wrong?

thanks

follower

Hi,

Your "if" needs to be in lowercase.

--Phil.

Go Up