S
S
Snowyyy2020-02-01 20:46:01
Google Apps Script
Snowyyy, 2020-02-01 20:46:01

How to run a script within a script?

Hello please advise. I have a script, is it possible to prescribe the launch of another script in it. Are both in the same project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Boev, 2020-02-02
@ProgrammerForever

Just call one function from another even if they are in different gs files

//Code1.gs
function f1(){
   return f2()+100;
};


//Code2.gs
function f2(){
   return 200;
};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question