might produce bizarre text in the browser, such as:
= 0 && nIndex
The SOM script library is actually returning its own code instead of the value that you requested. The fix is simple--just add brackets to the VBScript method:
Whenever your code produces unexpected results from the script library, adding a couple of brackets could be the fastest fix.