public static function PHPExcel_Calculation_Logical::IFERROR in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Logical.php \PHPExcel_Calculation_Logical::IFERROR()
* IFERROR * * Excel Function: * =IFERROR(testValue,errorpart) * * @access public * @category Logical Functions *
Parameters
mixed $testValue Value to check, is also the value returned when no error: * @param mixed $errorpart Value to return when testValue is an error condition * @return mixed The value of errorpart or testValue determined by error condition
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Calculation/ Logical.php, line 281
Class
- PHPExcel_Calculation_Logical
- PHPExcel_Calculation_Logical
Code
public static function IFERROR($testValue = '', $errorpart = '') {
$testValue = is_null($testValue) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue);
$errorpart = is_null($errorpart) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart);
return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue);
}