UXP scripting: How is one supposed to use constant values defined by the InDesign class?
I'm writing a UXP plug-in to export styles. But several routines don't work, because comparisons with published values for various options in the API never match. I don't know why. If you look at the valid values for numbering style documented here: https://developer.adobe.com/indesign/dom/api/n/NumberingStyle/
I'm wondering why the following code always falls through (even when a call to toString on the value in question shows that it does indeed match a numbered style). This takes a paragraph style and then returns my own value to use for later CSS generation:
Why does the "code sample" formatting in this forum never, NEVER WORK? Come on.

