HTML Code:
if (function() == true)
{
}
It will not execute the condition at all, if there is no code within the braces. Now, this could be desired behavior, but what if function() is supposed to do something that modifies the enviornment?
The easiest way to observe this problem:
HTML Code:
function sendrcamessage()
{
sendtorc("if ...");
return true;
}
function onCreated()
{
if (sendrcamessage() == true)
{
}
}
I came across this problem when quickly prototyping some new code.