Barry wrote:
> Jochem Maas schrieb:
>> Barry wrote:
>>> Jochem Maas schrieb:
...
>
> Well i don't want the grandma to be not as old as the table and older
> than the house age and still baking a cookie.
>
> Only if all cases stated are true, i want to bake a cookie :)
then reverse the logic of the switch statement.
switch (false) {
case ($grandmaAge >= $tableAge):
case ($grandmaAge < $houseAge):
case ($grandmaAge == array_sum($grandKids)):
haveABeer();
watchFootball();
default:
bakeCookie();
break;
}
what's the obsession with baking a cookie under these very particular
circumstances anyway? ;-)
>
> ( Yeah the wm is up and running ;) )
>
>
>> f*** 'short' the time taken to write a line is negligable compared to the
>> time taken to maintain, reread, change, enhance and/or adapt it.
>
> Surely true but writing short doesn't have to mean to write unreadable
> stuff.
indeed there are no absolutes here.
>
> IF ($grandma >= $tableage
> AND < $houseage
> AND== array_sum($grandkids)
> )
> something like that (theoretically)
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php