Go Down

Topic: Not declared in this scope? (Read 628 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy