How to use the IF Statement C#
Posted: Fri Mar 11, 2011 8:51 am
Im just going to show you how to use the If statement in C#
'var' is a variable you will check against 'var2'
'var' is a variable you will check against 'var2'
Code: Select all
Its that simple...if (var == var2) // Remember TWO = chars, else you will get an error
{
//Do something
}
else
{
//Do something else
}