c#if

C#
if(number > 10)
        Console.WriteLine("test1");
        else
        if(number < 0)
            Console.WriteLine("test2");
Source

Also in C#: