I am trying to run this code and it says that there are no problems in my IDE, but my compiler says "Error CS 1002: ; expected"
.
I can't find it?
using System;
namespace code
{
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Ask me anything!");
string userQuestion = Console.ReadLine();
string areYouABot = "I am not!";
if (userQuestion = "Are you a bot?");
{
Console.WriteLine(areYouABot);
}
}
}