if ( uqt < 0) { x = uqt * (-1); } if ( ult > x ) { Tfeld.append("il(t)[mA]= " + ult + "\n"); } else { Tfeld.append("il(t)[mA]= " + uqt + "\n"); }