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

CFswitch and value list or evaluation

Explorer ,
Jan 24, 2012 Jan 24, 2012

Copy link to clipboard

Copied

<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

Views

753

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

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

Votes

Translate

Translate

Report

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
Documentation