I want to use the if loop on a list but it does give a compiler error. I want to compare two list items with the && operator. well I tried Convert.ToInt32() and it worked.
static void Main(string[] args)
{
List<int> cards = new List<int>(52);
for(int i=0; i<52;i++)
{
cards.Add(i);
}
cards = Shuffle(cards);
if (cards >=0 && cards <=8)
{
Console.Write(cards + 2);
Console.WriteLine(suit.S);
}
}