The If statement
Hello all,
I am currently trying to create a worksheet for calculating beam deflection. I have a template I am using as a guide and in the template sheet the if statement is of the following form:

I am trying to write this into my program however when I insert an if statement I get the following issue:

As you can see the if statement takes up multiple lines. How do I get the if statement to become the more compact form?
Thanks,
Callum


