MDL-14274 lib/evalmath: support of conditional math in formulas.
authorJuan Pablo de Castro <jpdecastro@tel.uva.es>
Thu, 8 Feb 2018 18:57:35 +0000 (19:57 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 26 Jun 2018 08:25:44 +0000 (10:25 +0200)
commit6aa8a3b6d00fa42f49c92cc520d9de93bd0f7242
treea922ef7e84a86997de05c38579e17fa5eccb0146
parentdecd90e2a3a038c4373bb687d9dbf02d7ae68218
MDL-14274 lib/evalmath: support of conditional math in formulas.

- Comparison operators >, ==, <, <=, >=
- "if(condition, valueiftrue, valueif false)" function.

(amended to keep non-related lines unmodified - whitespace & indent)
lib/evalmath/evalmath.class.php
lib/evalmath/readme_moodle.txt
lib/mathslib.php
lib/tests/mathslib_test.php