Nov-02-2020, 11:38 PM
(Nov-02-2020, 11:11 PM)bowlofred Wrote: I don't understand the logic you're doing in the final section.
At line 53, you run the section only if damages is already a float. I would imagine if it's already a float you would want to leave it alone.
At line 56/57, if damages is set to some non-zero value, you change it to be a zero. Why?
In several places you sayint('0')
. Why not just say0
instead?
Well that's the section that's giving me trouble, so that's the section I've been toying around with. I'm really still learning and was just experimenting with different outcomes.
I'm trying to get it to check the cell... if the cell contains a positive float, that's the value.
if it's blank it needs to be 0.