Hey all,

I'm setting up an event loop for processing a series of functions.  Each
function will return the name of the next function to run, depending
what happens during the function.  I'm trying to figure how I would set
up the syntax for this.  Should the following work or do I need to do
something else?

  <cfset current_event =  "first_event">

   <cfloop condition = "current_event IS NOT 'Done'">
        <!---- This is the line I'm not sure about! --->
        current_event = #current_event#()      
   </cfloop>

  <!--- individual functions for each step --->

  <CFFUNCTION name = "first_event" RETURNTYPE = "string" OUTPUT = "Yes">
        .... <do some stuff> ...
        <CFRETURN  "second_event">
  </CFFUNCTION>

.... and so on...

<CFFUNCTION name = "last_event" RETURNTYPE = "string" OUTPUT = "Yes">
        .... <do some stuff> ...
        <CFRETURN  "Done">
  </CFFUNCTION>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to