I'd agree with that if the integer 0 was true too. But there's a difference between integer/floats and the other data types: The others have 0 in their domain too, and it's distinct from the empty values (i.e. "", ({}) etc).
/ Martin Stjernholm, Roxen IS
Previous text:
2003-09-15 20:24: Subject: float type weirdness
I disagree. Empty datatypes in pike are not false, as they are in some other langauges. "", (<>), ({}) and ([]) are not false, and so should not 0.0 be either.
/ Martin Nilsson (saturator)