What is the most effective way to determine if a statement is not true or undefined, sometimes without necessarily being a boolean?
I am attempting to improve this code.
var result = 'sometimes the result is undefined';
if (result === false || typeof result === 'undefined' && instantMessage === false || typeof instantMessage === 'undefined'){
// do something
}