Complex sentence: The algorithm first checks the value of x. If x is true, the algorithm checks the value of y and returns it.
Split into simpler sentences: The algorithm first checks the value of "x". If "x" is true, the algorithm checks the value of "y" and returns it.