Posted: Tue Jun 29, 2004 4:53 pm Post subject: RETURN doubt.
Newbie
Joined: 21 Apr 2004 Posts: 9
Hi all,
This is a very basic query.
The esql doc says that "When used in a function, the RETURN statement causes execution of that function to cease and control to be returned to the calling expression."
Was wondering if i do a RETURN FALSE in the Main() Function of a Compute Node where is the control returned.Does it return to the Compute Node thru which it was called??
Also one more query if i have something like:
Input Node -->Compute--> Output Node
And the esql as something:
--Main() Function
Call MyProcedure();
RETURN FALSE;
--END OF MAIN()
---Procedure MyProcedure()
........Some esql operations....
PROPAGATE;
--End of MyProcedure()
What i see from this esql, as it should the msg is PROPAGATE; but was curious what happens when the flow encounters the RETURN FALSE in the Main() function.
The message should propagate, as you say. Control will follow the message further down stream, and then return back to your ESQL when the message has been processed.
Then control will go... nowhere.
This is actually what you're supposed to do when using propogate.
It prevents the system from propogating an empty message tree. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum