# XOR Operator

An **XOR** gate combines two inputs and returns `TRUE`

only if one of the inputs is `TRUE`

and the other is `FALSE`

.

Input 1 | Input 2 | Output |
---|---|---|

0 | 0 | 0 |

0 | 1 | 1 |

1 | 0 | 1 |

1 | 1 | 0 |

An **XOR** gate combines two inputs and returns `TRUE`

only if one of the inputs is `TRUE`

and the other is `FALSE`

.

Input 1 | Input 2 | Output |
---|---|---|

0 | 0 | 0 |

0 | 1 | 1 |

1 | 0 | 1 |

1 | 1 | 0 |