Habe das selbe Programm mal in Python ausprobiert. Da hat es funktioniert: >>> def method(a,b): m2 = 0 if a < b: m2 = a else: m2 = b return m2 >>> method(9,5) 5 >>>