Pages: [1]   Go Down
Author Topic: Not declared in this scope?  (Read 526 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 74
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

New Zealand
Offline Offline
God Member
*****
Karma: 0
Posts: 999
Arduino pebbles
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Your "if" needs to be in lowercase.

--Phil.
Logged

Pages: [1]   Go Up
Jump to: