+ 1
Cannot Implicitly convert string to bool. Please help
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { string yourName; Console.WriteLine("What is your name?"); yourName = Console.ReadLine(); if (yourName="Jason") Console.WriteLine("You're bronze five trash."); else Console.WriteLine("You are a kewl kid"); } } }
1 Antwort