how to call two variables in one function on script include

Sowbarnika S1
Tera Contributor
 
2 REPLIES 2

Community Alums
Not applicable

Hi @Sowbarnika S1 ,

 Checkout these tips , if it helps you :

https://snprotips.com/useful-scripts

 

Kartik Choudha1
Tera Guru

Hi @Sowbarnika S1 

You meant to say, How to pass two arguments/parameters in a function of script include?

 

If yes, you can pass arguments one by one and can receive the same in script Include function in the same order.

For example. -

 

 

//calling a script include function with two vairable from different script.
var aaa = 3;
var bbb = 5;
var num1 = new ScriptIncludeName.functionName(aaa, bbb);

//Script include function
function: functionName(aaa, bbb){
   //function body
}