Python Forum

Full Version: idk what to do
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)
if l2 < o5 + l1:
    tbsow5 = l2 + .05
else:
    tbso5 = o5 + l1 + .05
(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