teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

typo

2021/08/04 13:42

投稿

itagagaki
itagagaki

スコア8402

answer CHANGED
@@ -4,16 +4,16 @@
4
4
 
5
5
  ```GAS
6
6
  var tenpu = [];
7
- var file;
7
+ var files;
8
8
 
9
- file = DriveApp.getFilesByName(ichiran);
9
+ files = DriveApp.getFilesByName(ichiran);
10
- if (file.hasNext()) {
10
+ if (files.hasNext()) {
11
- tenpu.push(file.next());
11
+ tenpu.push(files.next());
12
12
  }
13
13
 
14
- file = DriveApp.getFilesByName(ichiran1);
14
+ files = DriveApp.getFilesByName(ichiran1);
15
- if (file.hasNext()) {
15
+ if (files.hasNext()) {
16
- tenpu.push(file.next());
16
+ tenpu.push(files.next());
17
17
  }
18
18
  ```
19
19