Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding clause of and/or to if statement in google docs script

I need to include and/or statement to an if condition in google script. I am new to script and am not able to find a way to do so. Please help

if (dateval<>"") and (repval<>"") {condition if true}

Thank you for the help.

like image 419
Taizooooon Avatar asked Dec 04 '22 11:12

Taizooooon


1 Answers

you can find all the infos on that subject (and others ) on this site.

in your example the answer is

if (dateval!="" && repval!="") {do something}
like image 173
Serge insas Avatar answered Jan 12 '23 19:01

Serge insas