<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ColdFusion Checks String Length</title>
	<atom:link href="http://blog.neatlysliced.com/2008/03/coldfusion-checks-string-length/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.neatlysliced.com/2008/03/coldfusion-checks-string-length/</link>
	<description>Bread was overrated.</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:58:19 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ken Miner</title>
		<link>http://blog.neatlysliced.com/2008/03/coldfusion-checks-string-length/comment-page-1/#comment-10748</link>
		<dc:creator>Ken Miner</dc:creator>
		<pubDate>Wed, 29 Apr 2009 17:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.neatlysliced.com/2008/03/coldfusion-checks-string-length/#comment-10748</guid>
		<description>

Would be a bad way to try to code.  Try to create a function which you could then use anywhere on that page.  The example below is a very easy way of doing this.  Also you could put this business logic into a cfc and then use it anywhere on the site.  Hope it helps some....  

	
	local = structNew(); // KM: create a local structure
	
	function fnt_isItBig(myMun) {
		
		local.rtn_fntValue = false; // declare the variable that will be returned
		local.checkValue = 100000;	// decalre the variable to check value against
		
			if ( local.myNum GT local.checkValue ) {
		
				local.rtn_fntValue = true;	// it was greater			
			}

		return local;			 		  // it was less than
	}



 &lt;!--- call the function and pass the value to check --&gt;


	local.myNum (#local.myNum#) is greater than #local.checkValue#

	local.myNum (#local.myNum#) is less than #local.checkValue#
</description>
		<content:encoded><![CDATA[<p>Would be a bad way to try to code.  Try to create a function which you could then use anywhere on that page.  The example below is a very easy way of doing this.  Also you could put this business logic into a cfc and then use it anywhere on the site.  Hope it helps some&#8230;.  </p>
<p>	local = structNew(); // KM: create a local structure</p>
<p>	function fnt_isItBig(myMun) {</p>
<p>		local.rtn_fntValue = false; // declare the variable that will be returned<br />
		local.checkValue = 100000;	// decalre the variable to check value against</p>
<p>			if ( local.myNum GT local.checkValue ) {</p>
<p>				local.rtn_fntValue = true;	// it was greater<br />
			}</p>
<p>		return local;			 		  // it was less than<br />
	}</p>
<p> <!--- call the function and pass the value to check --></p>
<p>	local.myNum (#local.myNum#) is greater than #local.checkValue#</p>
<p>	local.myNum (#local.myNum#) is less than #local.checkValue#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Curtiss</title>
		<link>http://blog.neatlysliced.com/2008/03/coldfusion-checks-string-length/comment-page-1/#comment-9304</link>
		<dc:creator>Joshua Curtiss</dc:creator>
		<pubDate>Mon, 03 Mar 2008 15:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.neatlysliced.com/2008/03/coldfusion-checks-string-length/#comment-9304</guid>
		<description>I was wondering if I needed to escape the code.. Here&#039;s the code snippet:

&lt;cfset IsItBig = (MyNum GT 10000)&gt;</description>
		<content:encoded><![CDATA[<p>I was wondering if I needed to escape the code.. Here&#8217;s the code snippet:</p>
<p>&lt;cfset IsItBig = (MyNum GT 10000)&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Curtiss</title>
		<link>http://blog.neatlysliced.com/2008/03/coldfusion-checks-string-length/comment-page-1/#comment-9303</link>
		<dc:creator>Joshua Curtiss</dc:creator>
		<pubDate>Mon, 03 Mar 2008 15:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.neatlysliced.com/2008/03/coldfusion-checks-string-length/#comment-9303</guid>
		<description>You&#039;ll find this is a common shortcut in most langs, actually. Of course, some argue it is poor practice because it is less readable; others say it is better because it is less code. 

Here&#039;s another cool thing you can do:


The alternative would be a clumsy if statement to do the assignment.</description>
		<content:encoded><![CDATA[<p>You&#8217;ll find this is a common shortcut in most langs, actually. Of course, some argue it is poor practice because it is less readable; others say it is better because it is less code. </p>
<p>Here&#8217;s another cool thing you can do:</p>
<p>The alternative would be a clumsy if statement to do the assignment.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
