Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP - Variable Problem

Status
Not open for further replies.

crvasquez

Programmer
May 11, 2005
1
US
Below is a sample piece of code that I am running. The problem is that I am setting passed = false and it still is getting inside the if statement.

Any help would be appreciated.

i = 10;

if (i == 10);
{
passed = false
}

if (passed == true)
{
//Perform code...
}

Thanks
 
... and put it on the end of the passed = false line
Code:
if (i == 10)
{
    passed = false;
}

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top