I'm Trying To Make An Id Searcher Which Does A Thing When You Input The Right Id. However, The If Statement Always Runs. Why Is This?
I'm trying to make an id searcher which does a thing when you input the right id in google scripts. However, the if statement always runs. Why is this? The code is here: function c
Solution 1:
Google Apps Script use javascript, on it a single =
is used to assign a primitive or object to a variable. Use ==
to do an abstract equality comparison or ===
to do a strict equality comparison.
Change
if (idx = 91360136) {
to
if (idx === 91360136) {
Related Q&A
Post a Comment for "I'm Trying To Make An Id Searcher Which Does A Thing When You Input The Right Id. However, The If Statement Always Runs. Why Is This?"