1

I have many functions. I am using an asp.net control. I want to call all of functions in one (main) function. This is a return type function. This must use Javascript.

function a(){
    if(b==c){
    return true
}else{
    return false;
}

function b(){
    if(b==c){
        return true;
}else{ 
    return false;
}

function c(){}//return type

Function a, b, and c called function in main function.

 function main()
    {
   //??
    }

This function is not a work.

1
  • 1
    Call the main function. <script>main();</script> Commented Sep 12, 2012 at 5:10

1 Answer 1

2

You either want:

function main()
{
  return a() && b() && c() && d(); // all must be true to return true
}

or

function main()
{
  return a() || b() || c() || d(); // at least 1 must be true to return true
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.