Skip to main content
Inspiring
January 25, 2012
Question

CFswitch and value list or evaluation

  • January 25, 2012
  • 1 reply
  • 815 views

<cfloop index=i from=10 to=30 step=10>

<cfswitch expression="#i#/10">

<cfcase value="1,2,3">

value 1 and 2 and 3 should all be Found it here

</cfcase>

 

<cfdefaultcase>

<!--- do not do anything --->

</cfdefaultcase>

</cfswitch>

</cfloop>

Try it, see if it works for you.

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
January 25, 2012

<cfloop index="i" from="10" to="30" step="10">

<cfswitch expression="#i/10#">