if statement conditions c#
int myVar = 0;
if (myVar > 3)
{
//do code
}string emotions;
emotions = Console.ReadLine();
//for emotions say the user input was either
//happy,sad and mad
if (emotions == "happy")
{
Console.Write("You are happy");
}
else if (emotions == "sad")
{
Console.Write("You are sad");
}
else if (emotions == "mad")
{
Console.Write("You are mad");
}
else
{
Console.Write("Unknown input");
}
Also in C#:
- get first and last item list c#
- unity set position
- unity get all children
- how to create a list in c# unity
- unity assign button onclick
- How to search for a string from readline in c#
- Movement 2d unity
- abstract class c#
- read embedded resource c# xml
- c# get directory part of path
- c# remove last character from string
- return a list of list from yaml via C#
- C# function return datareader
- how to convert object in string JSON c#
- unity enum
- How to get the world position of the edge of an object?
- unity material offset script
- blazor wasm routable page in separate project
- mvc write to console
- prompt for array unity c# editor scripting
- disable mouse unity
- wpf label text in center
- unity line renderer position count
- asp.net tag helper checkbox