Can you post the part of the script where yrd is defined?
You are correct that ogScript uses Javascript. We use parseInt quite often in our scripts.
One possible reason:
If you're defining yrd as:
`var yrd =params.getParam('OID', 0);`
That is a parameter object - not the value of the parameter.
You should instead use:
`var yrd = params.getValue('OID', 0);`
OR
`var yrd = params.getparam('OID', 0).getValue()`
Note: If the parameter yrd is based on is already a number, you would also eliminate the need for parseInt.
#DashBoard