I love ian0411's answer. Elegant, concise and a sight to behold. Thanks. Did not know that doing arithmetic on boolean values converted them to a number.