Hi All
Kindly assist am having issue with the following code, where did i get it wrong? Only the first Block condition is execute, even if B<PA, the second block does not execute. Am using Netbean
PA =((1.1 * P2) / (1.46 * P3));
B = 3 * P4;
D = P4;
B1 = PA + 0.02;
D1 = ((B - P4) / 2);
if (B > PA) {
txtB.setText("" + Round(B,2));
txtD.setText("" + Round(D,2));
patxt.setText(""+ PA);
}
else {
txtB.setText("" + Round(B1,2));
txtD.setText("" + Round(D1,2));
patxt.setText(""+ PA);
}