I Have a <cfif><cfelse> block inside a <cfsavecontent> and then I use <cffile write to write that content. I want the <cfif><cfelse> tags to be copied not parsed. Right now it only writes whichever part of the <cfif> tag is true. I want the whole block to be saved as content and written to a new file. Can't seem to find an answer.
You mean you want the literal text "<cfif>" written to the file, you'll need to do something so they're not evaluated. Like escaping the cfml tags ie <cfif > instead of <cfif> Code (markup):
Also, the same applies to most any CF tag. They will automatically be evaluated, unless you escape the tags so they're treated as strings instead of executed.