Empty string: Difference between revisions

Content added Content deleted
No edit summary
Line 628: Line 628:
REM Check that a string is not empty:
REM Check that a string is not empty:
IF var$ <> "" THEN PRINT "String is not empty"
IF var$ <> "" THEN PRINT "String is not empty"
</syntaxhighlight>

=={{header|Beef}}==
<syntaxhighlight lang="csharp">using System;

namespace EmptyString
{
class Program
{
public static void Main()
{
String s = scope .();
if (s.Length == 0)
{
System.Console.Writeln("string empty");
}
if (s.Length != 0)
{
System.Console.Writeln("string not empty");
}
}
}
}
</syntaxhighlight>
</syntaxhighlight>