I have Moodle 3.7.1. When I use "if" in calcuations I always get the error "Invalid formula". I tried diferent variants like there and there but it also doesn't work.
I tried it on 3 others instances Moodle (3.7.1+, 3.7.2+) and the results is the same.
Word 'if" has a red underline and Moodle doesn't want to safe page.