How do I check if @test is empty with "if"

How do I check if @test is empty with “if”
Lolicode and C#

BLOCK:ConstantString
  value = "1"
  => VAR @memer
ENDBLOCK

if (@memer.Length > 0){
///Do Shit Here
}
2 Likes

if (@memer == NULL)
or
if (@memer == “”)
or
if (String.IsNullOrEmpty(@memer))

should also work, last one will =true if null or empty

1 Like

thanks for the answers

none of them worked, I guess it doesn’t see it as null or empty because it put a space in the parse.
but there is one more problem

if ( @memer == " " || @memer == $"0 <memer2>" )

how should i write this?

0 <memer2>  

not working when i type like lolicode

 $"0 <memer2>" 

If you are using the C# syntax then you have to use the C# interpolation which is with curly brackets.

C# way

if (memer == " " || memer == $"0 {memer2}")
1 Like

it worked thanks @Ruri