what does it mean for the following line?

```
T = ($("#a .b").hasClass("active") ? "C" : "D") ;

```

`$("#a .b").hasClass("active")` means whether `#a .b` exists? but how about `? "C" : "D"`, is it some kind of comparison logic?