I'm trying to write something like this with a ternary operator (needed because of jsx syntax constraints)

```
if(!this.state.msg) {
    if(this.state.ask.length != 0) {
        // do stuff
    } else {
       // do stuff
    }
    if(this....) {
        //do stuff
    } else {
      // ...
    }
} else {
    //nothing
}

```

So I tried this dumb

```
   !this.state.msg ? this.state.ask.length != 0 ? //do stuff : "" this.state... ? //do stuff : //do other stuff : //nothing

```

But it's obviously not the right way to go.

Any help very welcomed. thanks in advance.