idk what to do - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: idk what to do (/thread-12983.html) |
idk what to do - mtndewwarrior - Sep-22-2018 lrsow5 = (tbo + w2 + 2) tbsow5 = (o5 + l1 + 0.5)Hi i was wondering if anyone could help me with a big problem i am having. I thought i was about done with my program when i realized there was a major flaw in the math i have been using to figure one of my variables. So basically my math works for most transitions, and since all the transitions i have been looking at to make all of my formulas are the way that these formulas work i hadn't noticed that i had a problem. Its hard to explain what i am doing unless you are a sheet metal work so i wont really go in to it. Basically what i need is a way make this code below tbsow5 = (o5 + l1 + 0.5) unless l2 < (o5 + l1) then use this code instead (l2 + 0.5) RE: idk what to do - Larz60+ - Sep-22-2018 if l2 < o5 + l1: tbsow5 = l2 + .05 else: tbso5 = o5 + l1 + .05 RE: idk what to do - mtndewwarrior - Sep-23-2018 (Sep-22-2018, 02:56 AM)Larz60+ Wrote:if l2 < o5 + l1: tbsow5 = l2 + .05 else: tbso5 = o5 + l1 + .05 Thank you with 50 if statements already you would think i would have tried it for this lol |