You can use the Length function, which will return the string length.
s:='My string';
x:=Length(s);
if( x > 1 ) then writeln('The string is not empty')
else writeln('The string is empty');
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more