What about: ($var &&= 'succeeded') ||= 'failed';
On Mon, 3 Feb 2003, Sean O'Rourke wrote: > Argh. Please disregard that last message as the ramblings of a > pre-caffeinated mind. > > /s > > On Mon, 3 Feb 2003, Sean O'Rourke wrote: > > > On Mon, 3 Feb 2003, Dave Mitchell wrote: > > > $var ??= 'succeeded' :: 'failed'; > > > > Aha! > > > > $var && 'succeeded' || 'failed'; > > > > Thank you, precedence. > > > > /s > > > > >