I saw some code online of people using if statements like this. For example, they will have char variables named "complete" and "wild" and use it like this...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
if (!complete)
{
if (!wild)
{
break; // "x" matches "x"
}
elseif (wild == '*')
{
wildString++;
continue; // "x*" matches "x" or "xy"
}
match = false;
break; // "x" doesn't match "xy"
}
What does if(!wild) or if(!complete) mean? If WHAT? Its a char variable not a bool so I just didnt understand how it worked. Thanks!