Can I simplify this further?
SCAR Code:If da > 0 then
Begin
If T<180 then
Begin
If ((Fx < 0) and (Fy < Ny)) or ((Fx > 0) and (Fy < -1 * Ny)) then dA:=dA + 180;
End else
Begin
If ((Fx < 0) and (Fy > -1 * Ny)) or ((Fx > 0) and (Fy > Ny)) then dA:=dA + 180;
End;
End;
I know that
is possible.SCAR Code:If a then b
else
c;
but can
replace the b?SCAR Code:if e then c;
EDIT: I fixed the problem in the second embed, its still the same but I replaced "c end;" with "c;" which is correct but my question remains the same. I hope you guys can see what am on about.
EDIT 2: I realized my example can but I couldn't get it to work with what I have in the first embed. so it would be a if ..then within a if..then and within a if..then without begin and end if the final then ends up with a procedure like this;. Yeah this thing is a bit hard to explain.. I just want to see if i can save some space
