I have a recurring problem that is not a bug. I often have code where I don't care at all if the IF statement is true, I only care if the result is false. But to execute code for false, you must follow a true action with ELSE and then a false action. How can I just do a the false action? Isn't there a more elegant way to do this than below?
Example:
Example:
Code:
$NumOfWords = count($AWordAroundMatchedOW);
for ($x=0; $x <= $NumOfWords; $x++)
{
if (pspell_check($pspell_link, $AWordAroundMatchedOW))
{ echo 'DO NOTHING'; }
else
{ $Indicator = 1; }
}