IsNullorEmpty (StringValue)
Name | IsNullOrEmpty (String) |
Syntax | IsNullOrEmpty (String val) |
Purpose | To determine whether a string is null or if its length is zero. |
Description | Returns true if the specified parameter contains a null value or if string length is zero. |
Return Type | Boolean |
Parameters | val [System.String] – Expression that will be evaluated |
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F0%2520%2815%29.png&width=768&dpr=4&quality=100&sign=edd9f204&sv=1)
Example
In this example, we will pass a null value to the function transformation object using a Variables object.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F1%2520%2816%29.png&width=768&dpr=4&quality=100&sign=92529a6e&sv=1)
In the output, you can see that the Boolean value, True, has been returned as the passed value was empty or null.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F2%2520%2816%29.png&width=768&dpr=4&quality=100&sign=2657c7c3&sv=1)
Last updated