DX Application Performance Management

Datapower.js 

02-02-2016 05:49 PM

JavaScript Calculator to Convert Up/Down String metrics to 0/1

Statistics
0 Favorited
0 Views
1 Files
0 Shares
1 Downloads
Attachment(s)
js file
Datapower.js   1 KB   1 version
Uploaded - 05-29-2019

Tags and Keywords

Comments

02-03-2016 09:59 AM

Thanks for the tip Hiko!

02-02-2016 08:16 PM

somad01

 

I do want to caution about one thing which you may want to change: I found out about a year or so ago that the embedded Rhino engine version we use has a bit of a bug when it comes to string comparisons.

The best option around that is to use '===' operator instead of '=='.

Here's the W3CSchools reference: http://www.w3schools.com/js/js_comparisons.asp

 

This little problem gave me a headache for about two weeks. Thanks to KulbirNijjer for pointing me in the right direction.

Related Entries and Links

No Related Resource entered.