How could I essentially design an if/else statement as a circuit using basic logic gates?
The hardware equivalent of an if/else is a multiplexer.
if select_input == 0
    output = input_0
else
    output = input_1