Open shortad opened 2 months ago
Possible Fix (throwing this out there at 6:40am, so take with salt):
case TokenKind.Identifier:
// added replaceAll to remove 1 or more "not"
const nameLower = token.text?.toLowerCase().replaceAll("not ", "");
if (this.constants.has(nameLower)) {
return !!this.constants.get(nameLower);
}
Pretty simple to test in any app, see the screenshot.
I've had one of these
#if not
s in our repo for a long time, but I did a quick sanity test too and verified that the Roku OS can process either if/else path successfully.