Today, I've oddly found IncrementValue in Coldfusion. In my previous time, when I need to increase count in Coldfusion, I always use as follow.
2
3<!--- CFScript version --->
4<cfscript>
5 mycount++;
6</cfscript>
Now I don't need to use above native coding and should use IncrementValue instead. Usage is kinda simple.
2<cfset mycount = IncrementValue(mycount)>
As Adobe documentation, The integer part of number, incremented by one. It's so sad that we cannot use like step attribute in CFLoop in this built-in function.

Android
Top of Page
#1 by John Whish on 11/5/11 - 7:18 AM
<cfset mycount = 0>
<cfset mycount++>
#2 by Peter Boughton on 11/5/11 - 9:34 AM
i.e. mycount += 2 is shorter than mycount = mycount + 2
And of course works in both tags and script.
#3 by Jeff Coughlin on 11/5/11 - 11:12 AM
My guess is that incrementValue isn't slow anymore (assuming that the issue was fixed), but why bother using it? var++ is used in other languages (ie. javascript) so if you bring on other developers new to CF, they'll likely just "get it". Plus it's shorter to type.
#4 by Tony Garcia on 11/5/11 - 12:25 PM
#5 by ppshein on 11/6/11 - 6:47 AM
I think Adobe has fixed the bad performance of IncrementValue just like UUID in CF9. Honestly, I've not tested yet the comparison of IncrementValue and others function just like cfset count++.
#6 by ppshein on 11/6/11 - 6:54 AM
Can you let me know why you prefer <cfset myvar++>? Because of performance?
#7 by ppshein on 11/6/11 - 6:58 AM
Thanks for letting me know the usage of "step". That's one is very new to me.
#8 by ppshein on 11/6/11 - 7:05 AM
That's what I know either.
#9 by Tony on 11/10/11 - 9:44 PM
I haven't done any performance testing. It's just a personal syntax preference. IncrementValue(myvalue) just seems a lot more clunky to me than myvalue++