Got if/then/else/fi working

for the condition test needs to be inputted. i.e. "test a = b". Will
work on not needing the test. Also more robustness is needed.