Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9712

Google Script Fails to Return Boolean Value

$
0
0

I want to create a simple function that returns a boolean value when the word "website" appears in a specific cell. When I run the debugger, matches returns undefined.

function myFunction() {
  var url = ss.getRange(8,1).getValue().toString(); 
  var matches = url.includes("website");
  return matches; 
}

Why doesn't my function return a boolean value?


Viewing all articles
Browse latest Browse all 9712

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>