30 if (!defined(
'PHPEXCEL_ROOT')) {
34 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../');
35 require(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
60 public static function TRUE() {
77 public static function FALSE() {
110 foreach ($aArgs as
$arg) {
113 $returnValue = $returnValue &&
$arg;
114 } elseif ((is_numeric($arg)) && (!is_string($arg))) {
115 $returnValue = $returnValue && ($arg != 0);
116 } elseif (is_string($arg)) {
117 $arg = strtoupper($arg);
125 $returnValue = $returnValue && ($arg != 0);
131 if ($argCount == 0) {
161 $returnValue = False;
166 foreach ($aArgs as
$arg) {
169 $returnValue = $returnValue ||
$arg;
170 } elseif ((is_numeric($arg)) && (!is_string($arg))) {
171 $returnValue = $returnValue || ($arg != 0);
172 } elseif (is_string($arg)) {
173 $arg = strtoupper($arg);
181 $returnValue = $returnValue || ($arg != 0);
187 if ($argCount == 0) {
214 public static function NOT($logical) {
216 if (is_string($logical)) {
217 $logical = strtoupper($logical);
262 public static function STATEMENT_IF($condition =
true, $returnIfTrue = 0, $returnIfFalse = False) {
267 return ($condition ? $returnIfTrue : $returnIfFalse);
283 public static function IFERROR($testValue =
'', $errorpart =
'') {