Sorry, that was stupid of me.
https://www.guidesglobal.com/converters-2/
So as you can see I’ve made the simpler converter (temperature) work quite nicely. It’s when I have more than two fields that I hit the ceiling of my javascript skills!
Function key:
fieldname4 = kg
fieldname5 = lb
fieldname6 = st
Faulty function in lb (fieldname5):
(function(){
if (fieldname4>0) return fieldname4/0.45359237;
if (fieldname6>0) return fieldname6/14;
return fieldname5;
})()
-
This reply was modified 6 years, 4 months ago by francinegg.
-
This reply was modified 6 years, 4 months ago by francinegg.