Handle float to bool casting for conditions