Dan wrote: > Is there a python equivalent of this trick in C? > > Logic_Test ? True_Result : False_Result > > Example: > printf( "you have %i %s", num_eggs, num_eggs > 1 ? "eggs" : "egg" ); Logic_Test and True_Result or False_Result Example: print (num_eggs > 1) and 'eggs" or "egg" Thomas