Antwort auf: Wäre das einfach zu zu programmieren?

Startseite Foren Deutsches LiveCode-Forum Wäre das einfach zu zu programmieren? Antwort auf: Wäre das einfach zu zu programmieren?

#1747
Anonym

    Vielen Dank
    Ich habe es jetzt so gemacht und es geht 🙂

    on mouseUp
    put field “Laenge” into L
    put field “Hoehe” into H
    put field “Tiefe” into T
    put field “Gewicht” into G

    if ( G<=50) and (L<=235) and (H<=162) and (T<=5) then put “0,70€” into fld “lux”
    if ( G<=50) and (L<=235) and (H<=162) and (T<=5) then put “0,95€” into fld “Euro1”
    if ( G<=50) and (L<=235) and (H<=162) and (T<=5) then put “1,30€” into fld “Monde1”
    if ( G<=50) and (L<=235) and (H<=162) and (T<=5) then put “0,95€” into fld “Euro2”
    else
    if ( G<=500) and (L<=340) and (H<=250) and (T<=20) then put “1;40€” into fld “lux”
    if ( G<=500) and (L<=340) and (H<=250) and (T<=20) then put “2,85€” into fld “Euro1”
    if ( G<=500) and (L<=340) and (H<=250) and (T<=20) then put “2,85€” into fld “Euro2”
    if ( G<=500) and (L<=340) and (H<=250) and (T<=20) then put “3,90€” into fld “Monde1”
    else
    if ( G<=2000) and (L<=340) and (H<=250) and (T<=30) then put “2,80€” into fld “lux”
    if ( G<=2000) and (L<=340) and (H<=250) and (T<=30) then put “4,75€” into fld “Euro1”
    if ( G<=2000) and (L<=340) and (H<=250) and (T<=30) then put “4,75€” into fld “Euro2”
    if ( G<=2000) and (L<=340) and (H<=250) and (T<=30) then put “6,50€” into fld “Monde1”
    else
    if (G<=2000) and (L+H+T<=900) then put “4,20€” into fld “Lux”
    if (G<=2000) and (L+H+T<=900) then put “9,50€” into fld “Euro1”
    if (G<=2000) and (L+H+T<=900) then put “9,50€” into fld “Euro2”
    if (G<=2000) and (L+H+T<=900) then put “13,00€” into fld “Monde1”
    else
    if (G<=10000) then put “8,40” into fld “Lux”
    if (G<=10000) then put “18,05€” into fld “Euro1”
    if (G<=10000) then put “30,40€” into fld “Euro2”
    if (G<=10000) then put “39,00€” into fld “Monde1”
    if (G<=10000) then put “75,40€” into fld “Monde2”
    if (G<=10000) then put “111,80€” into fld “Monde3”
    else
    if (G<=30000) then put “10,50€” into fld “Lux”
    if (G<=30000) then put “30,40€” into fld “Euro1”
    if (G<=30000) then put “77,90€” into fld “Euro2”
    if (G<=30000) then put “111,80€” into fld “Monde1”
    if (G<=30000) then put “221,00€” into fld “Monde2”
    if (G<=30000) then put “330,20€” into fld “Monde3″

    end if
    end if

    end if

    end if
    end if
    end mouseUp

    Muss ich immer da ” end if “setzen? sonst bekoome ich eine Fehlermeldung.
    Ich möchte jetzt noch eine zweite Karte erstellen wo genau drauf steht was für Länder in Euro1, 2 und Monde 1,2,3 sind.
    aussderm noch ein Button der mir die Felder automatisch löscht.
    Aber es geht voran 🙂