@@akuep
Mit dieser Variablen soll in dem Script gerechnet werden:
if (Diao <= tol_diameter) { c1 = (Math.max (0.125 * eord, 0.4)).toFixed(2); }
Mit einer globalen Variablen? Oder hast du die vorher mit let c1
deklariert?
if (Diao > tol_diameter && ratio3 =< 0.025) { c1 = (0.2 * eord).toFixed(2); }
Es wird nur eine Meldung angezeigt: "[Line 2] SyntaxError: Unexpected token '<'"
Zeilennummern sind Schall und Rauch (wenn das Script minifiziert wurde).
Wenn die zweite if
-Anweisung das Problem ist, solltest du dort nach dem Syntaxfehler suchen.
Und fündig werden: Es gibt keinen =<
-Operator.
🖖 Live long and prosper
--
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14