Added the async if flow function and tests
Merge pull request #4 from Clever/add-if-flow

Add if flow