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.
['https://Stackoverflow.com/questions/15855762', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2252756/']
Logic Symbol  

Or ||  

And &&
Equal ==
Not !=

<https://www.w3schools.com/js/js_comparisons.asp>
I tried [Serge insas's answer](https://stackoverflow.com/a/15855859) and found out that it did not compile.

I messed around, modifying the line as follows:

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

```

I finally got this to work. Apparently, it needs the extra parentheses.