MrTV
asked on
c# stop running
How can i make a condition in c#
if (count < 10)
then stop running program
if (count < 10)
then stop running program
using (MySqlCommand cmd = new MySqlCommand("SELECT COUNT( * ) FROM `member` WHERE `tambol` LIKE '¿¿¿¿¿¿¿' ", conDatabase))
{
try
{
long count = (long)cmd.ExecuteScalar();
Console.WriteLine(count.ToString());
if (count < 10)
{
exit ;
}
}
catch (MySqlException ex)
{
Console.WriteLine(ex.ToString());
}
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.