Equal sign and Greater than sign not working in 'IF' Statements

Equal sign and Greater than sign not working in 'IF' Statements

by Dave Foord -
Number of replies: 0
Picture of Particularly helpful Moodlers

I am in the process of setting up some complex grade calculations in the grade book, but nothing above and beyond what I often do - but I am running into a complete head-scratcher:

If I add in this calculation

=if(temp2<temp3,1,0)

it accepts the formula

But if I try

=if(temp2=temp3,1,0)

or

=if(temp2>temp3,1,0)

I get an invalid formula error that won't let me save, so I am confused why I can do a 'less than' but not an 'equals' or a 'greater than'. It also doesn't matter which way round temp2 and temp3 are - that doesn't influence anything.

I am on Moodle 4.3.4

Has anyone seen this before? This one has completely stumped me.