Template:Max

Return a value of no less than test_value, or default.

Usage:


 * variable
 * the value to be tested


 * test_value
 * Return value must be no lower than this


 * default
 * if return value would be NULL, return default

IF variable is less than test_value, return test_value, else return variable. Return value will be default if return value would have been NULL.

Examples
2
 * returns: 2

1
 * returns: 1

1
 * returns: 1

0
 * returns: 0