If else doesnt work after changing laptop

I made som sketches on my old laptop and now I want to keep working on them on my new laptop. But “if” doesnt work anymore, and I dont understand why.
Code:

#include “Arduino.h”

int ladda=2;
void setup() {
}

void loop() {
If (ladda < 200)
{
ladda=1;
}
}


Thats it, one simple if. And it compiles like this:


Arduino: 1.6.9 (Windows 10), Board: “Arduino/Genuino Uno”

C:\Arduino\Laddare_ID\Laddare_ID.ino: In function ‘void loop()’:

Laddare_ID:9: error: ‘If’ was not declared in this scope

If (ladda < 200)

^

Laddare_ID:10: error: expected ‘;’ before ‘{’ token

{

^

exit status 1
‘If’ was not declared in this scope

Arduino: 1.6.9 (Windows 10), Board: “Arduino/Genuino Uno”

C:\Arduino\Laddare_ID\Laddare_ID.ino: In function ‘void loop()’:

Laddare_ID:9: error: ‘If’ was not declared in this scope

If (ladda < 200)

^

Laddare_ID:10: error: expected ‘;’ before ‘{’ token

{

^

exit status 1
‘If’ was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.


Am I missing something obvious?
I reinstalled Arduino, but no difference.
Any help would be appreciated.
Best regards
Jonathan

If (ladda < 200)

compare with

if (ladda < 200)

The lesson is if you want to use the same code, COPY and PASTE it

Yet another reason to use code tags here: capital 'I' (eye) and lowercase 'l' (el) look completely different.

Thank you people! Now I understand why the error message made no sense to me...

Now I understand why the error message made no sense to me...

But it was telling you exactly what was wrong.

Debugging Rule #1: If you think the compiler is screwing up, think again...

Regards, Ray L.

Debugging Rule #0: Read the error message