Computing the age of a person?

Brian Yennie briany at qldlearning.com
Thu May 14 16:58:32 EDT 2009


I think the scripting competition permanently damaged me... clearly  
this is a one-liner!

function le_chevalier tGender,tReal_age
   return 39 + offset(tGender, "m") * (tReal_age - 39)
end le_chevalier

> function le_chevalier tGEner,tReal_age
> if tGender = "f" then return min(39,tReal_age)
> return tReal_age
> end le_chevalier



More information about the use-livecode mailing list