Implemented conditional links for if-else.