Syntax: @isempty(str)
str: string
Return: integer
Tests for whether str is a blank string, returning a 1 if str is a null string, and 0 otherwise.
Examples
string num = "1.23415"
scalar sc1 = @isempty("1.23415")
scalar sc2 = @isempty(num)
returns a 0, while
scalar sc3 = @isempty("")
return the value 1.
If ALPHA1 is an alpha series,
series s1 = @isempty(alpha1)
fills the series with the 0, 1 values depending on whether the contents of the string is empty, for each observation in the workfile sample.
If SVEC1 is an svector,
vector v1 = @isempty(svec1)
fills the vector with 0, 1 values indicating whether the strings are empty for each element of SVEC1.
Cross-references