Maybe someone wants to post a 'better' example and we'll see where it goes?
if (condition()) return 10; return 20;
val = 20; if (condition()) val = 10; return val;
val = condition() ? 20 : 10; return val;
return condition() ? 10 : 20;