How to compare strings in google apps script

前端 未结 4 1555
盖世英雄少女心
盖世英雄少女心 2021-01-13 03:22

I am trying to compare string values that I have obtained from my google spreadsheet.

My Months appear in this format \" Jun13\", \"Aug13\" etc. and my script has tr

4条回答
  •  -上瘾入骨i
    2021-01-13 04:20

    Is there any reason you can't use the '==' operator?

    if ( "April" == ListOfMonths[j][0] ) {
        Logger.log("Match!");
    }
    

提交回复
热议问题