Script to generate condition text