3 Replies Latest reply on Jan 24, 2008 3:49 PM by Peter deHaan

    Possible to use Multiple Values in one Case Statement?

    ericbelair Level 1
      I have a block of code that I need run for two cases out of many possible cases. Is there anyway to do this, as is done in ColdFusion:

      <cfswitch expression="#var#">
      <cfcase value="1,2,3,4">
      <cfset x = true>
      <cfcase value="5">
      <cfset x = false>

      I'm trying to avoid duplicating code if at all possible....