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 $argCount => $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);
160 $returnValue =
FALSE;
165 foreach ($aArgs as $argCount => $arg) {
168 $returnValue = $returnValue || $arg;
169 } elseif ((is_numeric($arg)) && (!is_string($arg))) {
170 $returnValue = $returnValue || ($arg != 0);
171 } elseif (is_string($arg)) {
172 $arg = strtoupper($arg);
180 $returnValue = $returnValue || ($arg != 0);
214 if (is_string($logical)) {
215 $logical = strtoupper($logical);
265 return ($condition) ? $returnIfTrue : $returnIfFalse;
281 public static function IFERROR($testValue =
'', $errorpart =
'') {
static getTRUE()
Return the locale-specific translation of TRUE.
static IS_ERROR($value='')
IS_ERROR.
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.
static IFERROR($testValue='', $errorpart='')
static flattenArray($array)
Convert a multi-dimensional array to a simple 1-dimensional array.
static getFALSE()
Return the locale-specific translation of FALSE.
static STATEMENT_IF($condition=TRUE, $returnIfTrue=0, $returnIfFalse=FALSE)
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
static NOT($logical=FALSE)