const float k = 180.;if( zzz() ) a = k;else a = calc();...if(a=k) test();
else a = calc();
if(a=k) test();
C++ (Qt)float k = sqrt(b);if (b >= 0) a = k;else a = 180.0f;
C++ (Qt)if (b >= 0) a = sqrt(b);else a = 180.0f;