Might be something to test, but first look if there is no period on a string +200, I don't believe anything will return.
Another method might be to use reMatch to break the string into an array of sentences. Then loop over the returned array, concatenating the string back together until length > 200. ~Byron On Mar 7, 2015 11:23 AM, "Captain Obvious" <[email protected]> wrote: > > > Variable I is undefined. > > This works, > > <cfif len(variables.description) gt 200> > <cfset variables.i = false> > <cfloop condition="variables.i eq false"> > <cfset variables.description = > listDeleteAt(variables.description,listLen(variables.description, > "."),".")> > <cfif len(variables.description) lte 200> > <cfset variables.i = true> > </cfif> > </cfloop> > </cfif> > <cfoutput>#variables.description#</cfoutput> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360224 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

