Set var, check var = ERROR? Wha?

$w(“#dynamicDataset”).onReady( () => {
let itemObj = $w(“#dynamicDataset”).getCurrentItem();
let docType = itemObj[“docType”];
if docType != “White Paper” {
$w(“#pageTitle”).show();
}
});

I need to check “docType” in the database, if it’s not “White Paper” then display the title. I get a unexpected token on “docType” that is literally being defined 5cm away.

Why is this happening?

Sigh… answered my own question… yet again.

if (docType !== “White Paper”) {