UltiMaker uses functional, analytical and tracking cookies. Tracking cookies enhance your experience on our website and may also collect your personal data outside of Ultimaker websites. If you agree with the use of tracking cookies, click “I agree, continue browsing”. You can withdraw your consent at any time. If you do not consent with the use of tracking cookies, click “Refuse”. You can find more information about cookies on our Privacy and Cookie Policy page.
I solved this question by trial and error and if someone is with the same question this is the solution. 1 is true and 0 is false so I did this
"prime_tower_position_y": { "value": "270 if prime_tower_enable >= 1 else 150" },
I was trying to use the True and False because when I print "prime_tower_enable" it give me back True and False and not 0 or 1. I know 0 and 1 is a way to represent True or False but I did not think on that.