...
Code Block | ||
---|---|---|
| ||
const propertyValue = variables.custom.qualificationNeeded switch (propertyValue) { case true: return 0.35 case false: return 1.0 default: return null } |
Scores
Scores can aggregate blackbox results into an overall result
...
The results of blackbox and score calculations can be verified in several places in the admin panel
...
Show parts with errors in the calculation
Go to Parts
Home › B3_Ampi › PartsUse the filter option With errors
Any part still visible in the list now has an error somewhere in the calculation
Open the part details
Scroll down to the blackbox results
Check the list of blackboxes for those with an error
...
Overview of all calculation results for one particular part
To see all the score and blackbox results for one particular part, do the following
Go to Parts
Home › B3_Ampi › PartsFind the part that you are interested in and open the details
Scroll down past the properties
You’ll reach a table with all score results for this part and a table with all blackbox results just below.
...
Verifying the calculation results of one score or blackbox for one part
To see detailed results of a score or blackbox including all input variables for one particular part do the following:
Go to Parts
Home › B3_Ampi › PartsFind the part that you are interested in and open the details
Open either Blackbox tester or Score tester
From the list, select the score or blackbox you are interested in
Detailed score and blackbox results of the econ score.
...
Detailed input used in the blackbox and score calculations
...
Triggering recalculation
For performance reasons and to reduce server load, blackbox and score results are only calculated once and then stored for repeated use. If a blackbox or score script is changed, you need to manually trigger a re-calculation of blackbox and score results. It is sufficient to trigger the recalculation once at the end of your editing actions.
The system triggers re-calculation automatically once a day, so that changes are reflected in scores latest after 24 hours - even if no manual recalculation was triggered.
...
Appendix
Example
Full econ score script
...