using System;
var a = 4f;
if (a is float b && b is < 0 or > 1)
{
Console.Write("Yes");
}
else
Console.Write("No");