Yes, the nested if-conditions look the same in both pictures.
In Mathcad an if condition with just one statement was displayed in one line with the statement to the left of the condition, but Prime puts the statement indented in the next line. So just the look is different,
Why are you retyping the program in Prime? If you have access to the MC15 file, you could use the built-in converter.