I have a document with a Title element at the top and I'm trying to check that the title is centered. I have already setup the following:
const body = DocumentApp.getActiveDocument().getBody();
let title = body.getParagraphs()[0];
let att = title.getAttributes();
}
and when I add Logger.log(att.HORIZONTAL_ALIGNMENT);
it returns "Center" but when I try to check against that with Logger.log(att.HORIZONTAL_ALIGNMENT == "Center");
it returns false. Other attribute checks are correct like font size, font face, bold, etc.