Conditions Boolean Operators

i have this code

if(readString.indexOf("Led13=On")>0){
digitalWrite(PinLed13,LOW);
}
if(readString.indexOf("Led13=Off")>0){
digitalWrite(PinLed13,HIGH);
}
if(readString.indexOf("Led14=On")>0){
digitalWrite(PinLed14,LOW);
}
if(readString.indexOf("Led14=Off")>0){
digitalWrite(PinLed14,HIGH);
}

I would like to when the LED 13 is on the LED 14 can not be on. I don't know as is done help me plase.

You need a variable to keep track of whether the pin is on, or not. If pin 13 is on, and pin 14 is told to turn on, don't do it.

Test the state of LED 13 using digitalRead() before turning on LED 14

i would like to do an exemple pleaseee

i would like to do an exemple pleaseee

Permission granted.

What are the rules? When 13 goes on, 14 should be switched off, no matter what its previous state was? Any more rules? If this is the only rule, then the code below will do this.

if(readString.indexOf("Led13=On")>0){
  digitalWrite(PinLed14,HIGH);
  digitalWrite(PinLed13,LOW);
}

Yes, it really is that simple. Add to this if you have any more rules. The Arduino will only do what you tell it to.

Adriansalguero:
i would like to do an exemple pleaseee

if( (readString.indexOf("Led14=On") > 0) && (digitalRead(PinLed13) == LOW) )
{
  digitalWrite(PinLed14,HIGH);  //only happens if LED 13 is currently turned off
}

I agree with Morgan. Without knowing HOW the leds should behave, example would be guesswork.

Why doesn't what makes the text produce lines to get that right?

Adriansalguero:
i have this code ...

Use code tags, please, not table tags.