doc: add condition tutorial