Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFswitch and value list or evaluation

Explorer ,
Jan 24, 2012 Jan 24, 2012

<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.

TOPICS
Advanced techniques
780
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 24, 2012 Jan 24, 2012
LATEST

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

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources