How to compare strings in google apps script

前端 未结 4 1554
盖世英雄少女心
盖世英雄少女心 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条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 03:54

    Just use '==' operator:

    if(myString != ''){
    //do something
    }
    

    Enjoy!

提交回复
热议问题