Before read: Sorry for my english level.
var match = matchPromise != undefined ? matchPromise.then(ret_val =>
{
return ret_val;
})
: false;
if (match) {
//continue here after Promise response
}
My question is, how to wait before enter in the if
? because everytimes match == false
, but match
can be true
if hes answered by the promise.
I hope you understand my problem.
Thanks.