How do I put conditions on text blocks?