I've read this post and modified it for my needs and it works. The problem is I am not sure why it works and I would like to understand it more in depth.
https://moodle.org/mod/forum/discuss.php?d=233979
I've read this post and modified it for my needs and it works. The problem is I am not sure why it works and I would like to understand it more in depth.
https://moodle.org/mod/forum/discuss.php?d=233979
Hi Alex,
Moodle docs is explains the grade calculations HERE. Some examples are also included. If you are not using Moodle 3.6, you can switch to your Moodle version at the top of the Moodle documentation.
With kind regards,
Hartmut
Yes - the If function is NOT there in 3.5 and below.
basically you use the MIN and MAX functions to design factors that give back zero once your grade drops below a certain threshold.
for example:
=(test*0.7+presentation*0.3)*max(min(floor(test)-49;1);0)*max(min(floor(presentation)-49;1);0)
so after calculating our grade, we multiply it with our factors:
max(min(floor(test)-49;1);0)
thus, we have a factor that is 0 if the score for test was less than 50, and 1 if it was more than 50 - we multiply the whole grade with that factor, so if the student had less than 50 for the test, the whole grade is zero.
this is very awkward and can get very complicated, however, as I just learned from this thread, apparently there are finally IF-statements for grade calculation in moodle in 3.6, which will make this a lot easier.
Thanks for that detailed explanation Stefan.