View Single Post
  #4 (permalink)  
Old 02-18-2008, 05:35 PM
jon123 jon123 is offline
Senior Member
 
Join Date: Jan 2007
Posts: 948
Default

You can use either, matter of preference really, it is just that is_float is meant for that purpose, it checked whether the number is floating (is not a whole number) so !is_float is opposite to is_float.

$win &1 checks whether the number is odd or not
!$win &1 is not odd so is even
__________________
West Dorset Community
Reply With Quote