i got error in if condition columnName=='name'

```
receivedValues = req.body
var usercolumns = ["name","price","duration","gender"];

    //FOR VALIDATING VALUES BEFORE SUBMISSION
    for(var iter=0;iter<usercolumns.length;iter++)

    {
        columnName = usercolumns[iter];
        console.log("column name",columnName);
        if(receivedValues[columnName] == undefined && (columnName=='name' || columnName=='price' || columnName=='duration' || columnName=='gender'))
        {

```

[![enter image description here](https://i.stack.imgur.com/wCkcH.jpg)](https://i.stack.imgur.com/wCkcH.jpg)