//Scriptfunktion 'SUM'
//Funktion für Addition, Subtraktion, Division, Multiplikation, etc.
//Beispiel:
//Addition
MSG_TMP=""
S0="40"
S1="50"
S2="10,10"
SUMME=SUM{{S1}+{S2}+{S3}}
MSG_TMP={MSG_TMP}Ergebnis aus Summe: {SUMME}{RET}
//Subtraktion
M1="4,71"
DIFFERENZ=SUM{{SUMME}-{M1}}
MSG_TMP={MSG_TMP}Ergebnis aus Differenz: {DIFFERENZ}{RET}
//Multiplikation
F1="100"
PRODUKT=SUM{{DIFFERENZ}*{F1}}
MSG_TMP={MSG_TMP}Ergebnis aus Produkt: {PRODUKT}{RET}
//Division
D1="4"
QUOTIENT=SUM{{PRODUKT}/{D1}}
MSG_TMP={MSG_TMP}Ergebnis aus Quotient: {QUOTIENT}{RET}
//Verschachtelt
W1="100"
W2="100"
W3="20"
WERT=SUM{({W1}*{W2})-{W3}}
MSG_TMP={MSG_TMP}Ergebnis aus Verschachtelt: {WERT}{RET}
//Berechne die Anzahl der gefüllten Variablen
RES=CLEARVARS{VA}
VA1="2"
VA2="2"
VA3="2"
VA4="2"
VA5="2"
VA6="T"
VA7="5"
ERG=SUM{({VA1}+{VA2}+{VA3}+{VA4}+{VA5})+{VA6}-{VA7}}
MSG_TMP={MSG_TMP}Ergebnis aus der Berechnung gefüllter Variablen: {ERG}
DLG=DLGMESSAGE{{MSG}{MSG_TMP}}