On 9/25/07, Janice Caron <caron800 at googlemail.com> wrote: > Of course, the /easy/ way to do this is to have GetLong return a > long *, and then do > > long * temp; > long id = (temp = data.getLong("ID")) ? *temp : 0; Or chaining lots of tests together long id = *( get("A") || get("B") || get("C") || get("D") || &default );