using System;
public class Program
{
public static void Main()
try
if(1==1)
Console.WriteLine("Right");
}
else
throw new Exception("Wrong");
//this code below is what i dont want to be execute if the function fall to "else"
Console.WriteLine("The function has checked all, finish");
catch(Exception ex)
Console.WriteLine(ex.Message);