Making a traffic light color app and cannot figure out how to handle a negative value ( -0.5) to make a panels BackColor = Color.Yellow


Code:
  
  If CDbl(TxFrontThrustAfter.Text) < 0.0 And CDbl(TxFrontThrustAfter.Text) > -0.5 Then
            PnlFrontAfterThrust.BackColor = Color.Yellow
        End If
Please see attached image

Name:  PXL_20231028_041219131.jpg
Views: 256
Size:  24.7 KB