Hallo,

wenn das If komplett in einer Zeile steht, braucht man das EndIf nicht.