❔ how can i re use the readline after using it in a if statement
so basically im using readline and if it == "hello" for example, it'd writeline "hi!", then the program would exit. i'd like it to go back to readline after this. how can i do this?
// See https://aka.ms/new-console-template for more information
using ConsoleApp1;
using System.ComponentModel.Design;
namespace ConsoleApp1 // Note: actual namespace depends on the project name.
{
internal class Program
{
static void Main(string[] args)
{
Console.Title = Settings.WinName;
Console.SetWindowSize(Settings.WinSize1, Settings.WinSize2);
Console.BufferHeight = Settings.BufHeight;
Console.BufferWidth = 97;
Console.WriteLine(Settings.Logo);
Console.Write(":> ");
if (Input.userResponse == "hi")
{
Console.WriteLine("no");
}
else if (Input.userResponse == "bad")
{
Console.WriteLine("trash");
Input.userResponse;
}
}
}
}// See https://aka.ms/new-console-template for more information
using ConsoleApp1;
using System.ComponentModel.Design;
namespace ConsoleApp1 // Note: actual namespace depends on the project name.
{
internal class Program
{
static void Main(string[] args)
{
Console.Title = Settings.WinName;
Console.SetWindowSize(Settings.WinSize1, Settings.WinSize2);
Console.BufferHeight = Settings.BufHeight;
Console.BufferWidth = 97;
Console.WriteLine(Settings.Logo);
Console.Write(":> ");
if (Input.userResponse == "hi")
{
Console.WriteLine("no");
}
else if (Input.userResponse == "bad")
{
Console.WriteLine("trash");
Input.userResponse;
}
}
}
}