Merges two nested ‘if’ conditions into a single one.