What's the equivalent way of writing inline assignment and checking PHP 'logic' but in JavaScript
===

In PHP you could write this:

    if(false !== ($value = someFunctionCall())) {
     // use $value
    }

How would you write an equivalent of this in JavaScript without defining 

> var value;

 before this comparison?

Thank you,
MyStream