help with my code

Bien seré breve, tengo un arduino con un switch en el pin 2 y un modulo RF
le envio comandos por RF para que active o desactive las salidas digitales
lo que quiero hacer es que al encender el switch, se encienda una salida. y al apagar el switch se apague la salida,
pero que ademas si el switch esta apagado y quiero prenderlo por RF pueda prenderlo.

alguna ayuda de como puedo hacer este código?
perdon por mi ingles

Google Translation (Which I will give my approval to, as I know some Spanish): "Well I'll be brief, I have an arduino with a switch on pin 2 and an RF module
I am sending RF commands to enable or disable the digital outputs.
What I want to do is that when you turn on the switch, turn on an output. and turn the switch to turn off the output,
but also if the switch is off and I can turn it turn it by RF.
any help on how I can make this code?
sorry for my English"

Response:
First, read the switch and look for an RF command. Store these in two Boolean variables that are true if the light should be on. Then use an "IF" statement to see if either of them is true and turn on the output.

Esp. Primero, lea el switch y buscar un comando RF. Guarde estos documentos en dos variables booleanas que son verdaderas si la salida debe estar encendido. A continuación, utilice un "if" para ver si alguno de ellos es verdad y activar la salida.

// Sudo-Code

if( active1 || active2) {
     //turn on output
     //activar la salida
}
else{
    //turn off output
    //deactivar la salida
}

You might also have better luck in the Spanish forums.
Usted también podría tener mejor suerte en los foros españoles.