0

Erweiterung um bestimmte Regeln

Hallo in die Runde, 

ich würde gerne eine if else Formel erweitern und bräuchte ein kurzen Gedanken stupser

 

Ich würde gerne in ein f(x) feld die unten stehende Bedingung einbauen.

Bildschirmfoto 2020-07-24 um 15.45.16

Dabei habe ich diese aufgebaut, aber leider zeigt es mir immer nur den ersten Eintrag?

if 'Bildtitel PIDM' > 5 and 'Annahmen PIDM' > 17 then
"Star 1"
else
if 'Bildtitel PIDM' < 6 and 'Annahmen PIDM' < 18 then
"NOT YET"
else
if 'Bildtitel PIDM' > 11 and 'Annahmen PIDM' > 35 then
"Star 2"
else
if 'Bildtitel PIDM' < 12 and 'Annahmen PIDM' < 36 then
"Star 1"
else
if 'Bildtitel PIDM' > 23 and 'Annahmen PIDM' > 71 then
"Star 3"
else
if 'Bildtitel PIDM' < 24 and 'Annahmen PIDM' < 72 then
"Star 2"
end

 

VG Jerry

Bildschirmfoto 2020-07-24 um 15.46.39

2 Antworten

null
    • Tacho
    • vor 4 Jahren
    • Gemeldet - anzeigen

    Ahoi Jerry-Louis,

    versuch es mal so:

    ---

    if 'Bildtitel PIDM' < 6 or 'Annahmen PIDM' < 18 then
    "NOT YET"
    else
    if 'Bildtitel PIDM' > 5 and 'Bildtitel PIDM' < 12 or 'Annahmen PIDM' > 17 and 'Annahmen PIDM' < 36 then
    "Star 1"
    else
    if 'Bildtitel PIDM' > 11 and 'Bildtitel PIDM' < 24 or 'Annahmen PIDM' > 35 and 'Annahmen PIDM' < 72 then
    "Star 2"
    else
    if 'Bildtitel PIDM' > 23 and 'Bildtitel PIDM' < 48 or 'Annahmen PIDM' > 71 and 'Annahmen PIDM' < 144 then
    "Star 3"
    else
    if 'Bildtitel PIDM' > 47 and 'Bildtitel PIDM' < 96 or 'Annahmen PIDM' > 143 and 'Annahmen PIDM' < 288 then
    "Star 4"
    else
    if 'Bildtitel PIDM' > 95 and 'Annahmen PIDM' > 287 then
    "Star 5"
    end
    end
    end
    end
    end
    end

    ----

    Gruß
    Tacho

    • JerryLouis_Ruff
    • vor 4 Jahren
    • Gemeldet - anzeigen

    Hallo Tacho, 

    ja dein Script klappt wunderbar. 

    Ich schau mal deinen an und meinen um zu lernen wo mein Fehler war. 

    Ich danke Dir ganz herzlichst und wünsche einen schönen Samstag. 

    Viele Grüße 

    Jerry