If (TotalA >= 0) And (TotalA <= 0.304) Then
.....do whatever
Else If (TotalA > 0.304) And (TotalA <= 0.5) Then
.....do whatever
Else
.....do whatever
End If
I would change it to this:Because if the value of Total = 0.3045 then it would have been in the Else section.B4X:If (TotalA >= 0) And (TotalA <= 0.304) Then .....do whatever Else If (TotalA > 0.304) And (TotalA <= 0.5) Then .....do whatever Else .....do whatever End If
Best regards
If (TotalA >= 0) And (TotalA <= 0.304) Then
.....do whatever
Else If TotalA <= 0.5 Then
.....do whatever
Else
.....do whatever
End If
I believe values in the first evaluation will be included in the second evaluation, it does not limit the overall evaluation to the range required.
TotalA = 0.2
If (TotalA >= 0) AND (TotalA <= 0.304) Then
Log (">0 <=0.304")
Else If TotalA <= 0.5 Then
Log (">0.304 <=0.5")
Else
Log (">0.5")
End If