The only thing you would save is the variable creation itself by putting it into your if statement (hardly anything to worry about).

If you think that is more readable, i would say yes.

Mike.



Sophek Tounn wrote:
Hi All,

Would you declare this as a best practice?

<cfset variables.leftside = left(arguments.dataString,3)>
<cfset variables.rightside = right(arguments.dataString,3)>

   
    <cfif variables.leftside EQ "No:">

    </cfif>

Is there an performance gain by putting the variables. in my if statement?

Thanks
Sophek

_______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.instantspot.com/ www.teksystems.com/



_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.instantspot.com/
  www.teksystems.com/

Reply via email to