Formula - If a field contains X then add text to a letter

%3CLINGO-SUB%20id%3D%22lingo-sub-357607%22%20slang%3D%22en-US%22%3EFormula%20-%20If%20a%20field%20contains%20X%20then%20add%20text%20to%20a%20letter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-357607%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20writing%20a%20template%20letter%20which%20will%20be%20used%20and%20generate%20from%20different%20software.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20the%20letter%20to%20contain%20additional%20text%20if%20a%20field%20within%20the%20software%20contains%20X.%20I%20am%20unsure%20what%20formula%20to%20use.%20I%20have%20something%20that%20says%20(...%26nbsp%3B%20%26nbsp%3B.indexOf(...)%20%26gt%3B%200)%20but%20it%20has%20confused%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20makes%20sense%20but%20please%20ask%20if%20you%20have%20any%20questions.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELorraine%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-357607%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormula%20help%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hi All,

 

I am writing a template letter which will be used and generate from different software.

 

I need the letter to contain additional text if a field within the software contains X. I am unsure what formula to use. I have something that says (...   .indexOf(...) > 0) but it has confused me.

 

I hope this makes sense but please ask if you have any questions. 

 

Thanks in advance for your help.

 

Lorraine