Argument | Description |
as_value | String. The string value you wish to test for NULL or empty |
as_return | String. The value to be returned if the test on as_value (controlled by the ai_flags parameter) comes back NULL or empty |
ai_flags | Integer. A flags parameter that indicates which tests are to be performed. See Usage below |
While NULL values will not often be found in normal PowerHome usage, it is possible that a NULL value will surface. Any type of variable can be NULL but this function only checks for String values. When a NULL string is concatenated with another string, the result will ALWAYS be NULL. A numeric value that is NULL added to another numeric value will be NULL. Whenever a NULL is part of an equation, the result will be NULL. This function will allow you to check and substitute an alternate value.
The ai_flags parameter controls which type of checking to use. Add together the values below for each check you would like performed:
If you supply an ai_flags parameter of 0, no checks will be performed. If you would like to perform all 3 checks, use an ai_flags value of 7
If you need to check for NULL values for datatypes other than Strings, see the isnull( ) function