You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
step(functionf1(){find('foo',this);},functionf2(err,foo){if(!foo){// if there's no foo, create itcreate('foo',this)}else{// Otherwise this step is a no-opreturnfoo;// Synchronously passed `foo` to the next step}},functionf3(err,foo){print(foo);});
That said, there's been some discussions on how to make this use case a bit more readable as well as some libraries that implement the ideas discussed:
Is it possible to implement conditional control flow? I would like to skip over a few steps.
Something along these lines:
If not, what is the best way to implement the code above?
The text was updated successfully, but these errors were encountered: