1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8class Math_Formula_Function_LessThan extends Math_Formula_Function
9{
10	function evaluate($element)
11	{
12
13		if (count($element) > 2) {
14			$this->error(tr('Too many arguments on less than.'));
15		}
16
17		$reference = $this->evaluateChild($element[0]);
18
19		$mynumber = $this->evaluateChild($element[1]);
20		if ($mynumber < $reference) {
21			return false;
22		}
23
24
25		return true;
26	}
27}
28