$wurm = ($apfel>0) ? 1 : 0;



"ist der apfel größer null, is(s)t der wurm. ansonsten is(s)t er nicht."