You guessed it, diodes can also be used to build logic gates, but not all of them, only the AND and OR gates can be built using diodes only. However, by adding a transistor as an active element ...
They were cheaper and far more reliable than a point-contact transistor, and capable of forming AND and OR gates with only resistors for company. This so-called diode-resistor logic, or DRL ...