Difference between revisions of "Manuals/calci/IFNULL"
Jump to navigation
Jump to search
| Line 6: | Line 6: | ||
==Description== | ==Description== | ||
| + | IFNULL (Value,Default) | ||
| − | * | + | *<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 14:47, 4 January 2018
IFNULL (Value,Default)
Where
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Value} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Default}
IFNULL() used to returned the given values according to the Null values.
Description
IFNULL (Value,Default)
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Value} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Default} 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
- IFNULL(90,3) = 90
- IFNULL(#,54)= 54
- IFNULL("@",1) = @
See Also
References