Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
idk what to do
#1
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)
Reply
#2
if l2 < o5 + l1:
    tbsow5 = l2 + .05
else:
    tbso5 = o5 + l1 + .05
Reply
#3
(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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020