Forum Moderators: coopster & phranque

Message Too Old, No Replies

return values to JS function

         

web_guy

9:57 am on Feb 20, 2002 (gmt 0)



Hi All,

I need help in finishing off a script.

I am writing a script where 3 conditions in a function are to be checked.
eg.

function Master(){
if(condition1){
addFunction()
}
if(condition2){
addFunction()
}
if(condition3){
addFunction()
}
}

Then I need to return to Master() from addFunction() and continue on to the
next if condition, without going to the first if condition again. All 3
functions must be checked everytime there is a call to Master().
I cannot have if..else in the Master().

Any ideas.

Thank you

circuitjump

12:58 pm on Feb 20, 2002 (gmt 0)

10+ Year Member



From what I've seen the way you have it should work. As long as you don't add a " else or elseif " you should be ok. The script will check each if statement.

Well, That's been my expirience :)

Welcome to Webmasterworld web_guy