Difference between revisions of "Manuals/calci/IFNULL"

From ZCubes Wiki
Jump to navigation Jump to search
Line 6: Line 6:
  
 
==Description==
 
==Description==
 +
IFNULL (Value,Default)
  
*In <math>IFNULL (Value,Default)</math>,<math>Value</math> and <math>Default</math> are any two values.This function takes two arguments.  
+
*<math>Value</math> and <math>Default</math> are any two values.This function takes two arguments.  
 
*If the first argument is not NULL, the function returns the first argument. Otherwise, the second argument is returned.  
 
*If the first argument is not NULL, the function returns the first argument. Otherwise, the second argument is returned.  
 
*This function is commonly used to replace NULL value with another value.
 
*This function is commonly used to replace NULL value with another value.

Revision as of 15:47, 4 January 2018

IFNULL (Value,Default)

Where

  • and

IFNULL() used to returned the given values according to the Null values.

Description

IFNULL (Value,Default)

  • and are any two values.This function takes two arguments.
  • If the first argument is not NULL, the function returns the first argument. Otherwise, the second argument is returned.
  • This function is commonly used to replace NULL value with another value.

Examples

  1. IFNULL(90,3) = 90
  2. IFNULL(#,54)= 54
  3. IFNULL("@",1) = @


See Also


References