You guessed it, diodes can also be used to build logic gates, but not all of them ... all other gates can be implemented. The three input, diode-only AND gate is shown in the picture above.