❔ help me about if and elses please
hi guys i am new at c# and i cant understand where is the problem at this code.

ifs are oddtrue or false to inform you if it succeeded or not, so you can use it directly in a condition,
/close ;int.TryParseoutoutintTo/FromBase64StringTo/FromHexStringToString(X value, int toBase)ToX(string? value, int fromBase)trycatchelseelse ifif(number4 > 80)
{
Console.WriteLine("A");
}
...return Convert.ToInt32(null); //returns 0. null should not be considered as 0 ever
return Convert.ToInt32("asdf"); //throws FormatExceptionvar number = int.Parse("abc"); //throws FormatException
var number = int.Parse(""); //throws FormatExceptionif (int.TryParse(someInput, out var result))
{
Console.WriteLine($"Thanks for giving me the following number: {result}!");
}
else
{
Console.WriteLine("You didn't give me a valid number :c");
}