Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
EvalMathFuncs Class Reference

Static Public Member Functions

static average ()
 
static cond_and ()
 
static cond_or ()
 
static get_random_seed ()
 
static ifthenelse ($condition, $then, $else)
 MDL-14274 new conditional function.
 
static max ()
 
static min ()
 
static mod ($op1, $op2)
 
static pi ()
 
static power ($op1, $op2)
 
static rand_float ()
 
static rand_int ($min, $max)
 
static round ($val, $precision=0)
 
static set_random_seed ($randomseed)
 
static sum ()
 

Static Protected Attributes

static $randomseed = null
 

Member Function Documentation

◆ ifthenelse()

static EvalMathFuncs::ifthenelse ( $condition,
$then,
$else )
static

MDL-14274 new conditional function.

Parameters
boolean$conditionboolean for conditional.
variant$thenvalue if condition is true.
unknown$elsevalue if condition is false.
Author
Juan Pablo de Castro juan..nosp@m.pabl.nosp@m.o.de..nosp@m.cast.nosp@m.ro@gm.nosp@m.ail..nosp@m.com
Return values
unknown

The documentation for this class was generated from the following file: