// Howdy 👋.
//
// If you are new to writing code in Flux make sure to check out our get started docs: https://docs.flux.ai/manual/code-editor-overview
//
// We also have a Flux Slack Community in case you need help: https://join.slack.com/t/fluxcommunity/shared_invite/zt-p48n941f-wzQ06kGmuFJ2HXnGYT1JkA
//
// To infinity and beyond 🚀
flux.on("inputChange", (e) => {
if(e.control_name === "Screw Length"){
switch(e.value) {
case '4mm': flux.Currentasset("m2x0.4(4mm"); break;
case '5mm': flux.Currentasset("m2x0.4(5mm"); break;
case '6mm': flux.Currentasset("m2x0.4(6mm"); break;
case '8mm': flux.Currentasset("m2x0.4(8mm"); break;
case '10mm': flux.Currentasset("m2x0.4(10mm");
}
}
})