new to arduino need some help with code please help

hi there i’m new to arduino and to programming.
I’m trying to switch 2 relays with a remote 4 buttons
(relay 1 on and off and relay 2 on and off)
1 button for each function i have no idea where to start
with this i tried to copy and past a few bits but now its giving me errors
i need to sort the errors and config the 4 buttons
so any help would be good
Thanks in advance

the code i have

#include <IRremote.h>

int IRpin = 11; // pin for the IR sensor
int RELAYpin = 4; // relay pin
int RELAY2pin = 5; // relay number 2
IRrecv irrecv(IRpin);
decode_results results;

boolean LEDon = true; // initializing LEDon as true

void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(RELAYpin, OUTPUT);
pinMode(RELAY2pin, OUTPUT);
}

void loop()
{

if (irrecv.decode(&results))
{

irrecv.resume(); // Receive the next value
}

if (results.value == 0) // change zero to your IR remote button number
{
if (LEDon == true) // is LEDon equal to true?
{
LEDon = false;
digitalWrite(RELAYpin, HIGH);
delay(100); // keeps the transistion smooth

}

else
{
LEDon = true;
digitalWrite(RELAYpin, LOW);
delay(100);

}
if (results.value == 0) // change zero to your IR remote button number
{
if (LEDon == true) // is LEDon equal to true?
{
LEDon = false;
digitalWrite(RELAY2pin, HIGH);
delay(100); // keeps the transistion smooth

}

else
{
LEDon = true;
digitalWrite(RELAY2pin, LOW);
delay(100);

}

} // <---------------this is the error shows in red

Never mind sorted it out now found a complete code ready done and works perfectly

int RELAYpin = 4;    // relay pin
int RELAY2pin = 5; // relay number 2

When you start to number variables, it's time to think arrays. While this is a relatively simple code, and may never expand between two relays, the numbers are 1 and 2, not uh-huh and 2.