Im Writing this code and im using labels and i cant get my code to go to the creator part instead of the Admin part
Heres my code
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Jarvis_Version_2 { class Program { static void Main(string[] args) { // Jarvis Login Script Console.WriteLine("Hello My Name Is Jarvis. Current Version is 2.01"); // Start of login Script Login: Console.WriteLine("Please Enter Your User-Name"); Console.Write(": "); string strInput = Console.ReadLine(); string strAdmin = "Admin"; string strCreator = "Matthew"; //Administrator Login if (strInput == strAdmin) ; { goto Admin; } //Creator Login if (strInput == strCreator) ; { goto Creator; } Admin: { Console.WriteLine("Hello Administrator"); // Program Will Sleep for 5 Seconds System.Threading.Thread.Sleep(5000); // Program Will Goto Main Thread goto Main; //End of Admin } Creator: { Console.WriteLine("Hello Sir! How are you today?"); System.Threading.Thread.Sleep(3000); goto Main; } Main: // Begging of main thread Console.WriteLine("Command Line Activation Commencing "); System.Threading.Thread.Sleep(3000); } } }
Camwarp Begging Software Developer