Use this Patch for basic logical operations. Below you can see the full truth table of all supported operations.

#### Inputs

- Operation (see above)
- P (Number,Bool)
- Q (Number,Bool)

#### Outputs

- Result (Number,Bool)

#### Truth Table

P | 0 | 0 | 1 | 1 |
---|---|---|---|---|

Q | 0 | 1 | 0 | 1 |

True | 1 | 1 | 1 | 1 |

False | 0 | 0 | 0 | 0 |

P | 0 | 0 | 1 | 1 |

NOT | 1 | 1 | 0 | 0 |

AND | 0 | 0 | 0 | 1 |

OR | 0 | 1 | 1 | 1 |

Implies | 1 | 1 | 0 | 1 |

XOR | 0 | 1 | 1 | 0 |

NAND | 1 | 1 | 1 | 0 |

NOR | 1 | 0 | 0 | 0 |

XNOR | 1 | 0 | 0 | 1 |