Capping at 100

Capping at 100

by Genelle Belmas -
Number of replies: 0

Hi, all,

I have discussion boards which cap at 100. Students can post up to 10 per week, and if they post a minimum of 7, they'll cap out at the end of 16 weeks. So if I were writing an if/then/else statement:

= if (sum (allboards) > 100) then allboards = 100 else sum (allboards)

So if the sum of all the boards is more than 100, it should be 100, else it should be the (lower) sum. Make sense? How can I do this with a calculation?

Thanks!
Genelle

edit: I believe I'm using Moodle 2.2 or 2.3.