Does anybody know what I am doing wrong? Also how can I make it so that I don't have to use the Value() function al the time?
This works:
If(
Value(maandenAfschrijven.Text) > 0;
Value(mdmBedrag.Text) * Value(maandenAfschrijven.Text) / loopTijd;
Value(mdmBedrag.Text) * Value(restwaarde.Text) / Value(aanschafprijs.Text) <= Value(restwaarde.Text);
1 + 1;
Value(mdmBedrag.Text) * Value(restwaarde.Text) / Value(aanschafprijs.Text)
)
But this doesn't
If(
Value(maandenAfschrijven.Text) > 0;
Value(mdmBedrag.Text) * Value(maandenAfschrijven.Text) / loopTijd;
Value(mdmBedrag.Text) * Value(restwaarde.Text) / Value(aanschafprijs.Text) <= Value(restwaarde.Text);
"Betaal alleen restwaarde!";
Value(mdmBedrag.Text) * Value(restwaarde.Text) / Value(aanschafprijs.Text)
)