If one IF is satisfied, skip the rest in the nest...

2015-10-21 Thread bigred04bd3
So here what I have, I have a 3 IF's within the same level. If one IF is satisfied, I would like to "skip" the other IFs and continue with my code. # 4 second open if wb1_sheet1.cell(row=cell + 1, column=2).value == 0 and wb1_sheet1.cell(row=cell + 1, column=3).value == 0 and

Re: If one IF is satisfied, skip the rest in the nest...

2015-10-21 Thread John Gordon
In <50a6789a-3965-430b-9a91-b08adcedf...@googlegroups.com> bigred04...@gmail.com writes: > So here what I have, I have a 3 IF's within the same level. If one IF is s= > atisfied, I would like to "skip" the other IFs and continue with my code. > # 4 second open > if

Re: If one IF is satisfied, skip the rest in the nest...

2015-10-21 Thread bigred04bd3
O...MG I cannot believe I just asked this question ha. I ended up realizing I need to use an elif after I took a break from it and re read everything...Brain fart, thanks for replies. Brice -- https://mail.python.org/mailman/listinfo/python-list

Re: If one IF is satisfied, skip the rest in the nest...

2015-10-21 Thread Denis McMahon
On Wed, 21 Oct 2015 10:31:04 -0700, bigred04bd3 wrote: > So here what I have, I have a 3 IF's within the same level. If one IF > is satisfied, I would like to "skip" the other IFs and continue with my > code. c1 = wb1_sheet1.cell(row=cell + 1, column=2).value == 0 and

Re: If one IF is satisfied, skip the rest in the nest...

2015-10-21 Thread Grant Edwards
On 2015-10-21, Denis McMahon wrote: > On Wed, 21 Oct 2015 10:31:04 -0700, bigred04bd3 wrote: > >> So here what I have, I have a 3 IF's within the same level. If one IF >> is satisfied, I would like to "skip" the other IFs and continue with my >> code. > > c1 =

Re: If one IF is satisfied, skip the rest in the nest...

2015-10-21 Thread Denis McMahon
On Wed, 21 Oct 2015 20:07:21 +, Grant Edwards wrote: > On 2015-10-21, Denis McMahon wrote: >> On Wed, 21 Oct 2015 10:31:04 -0700, bigred04bd3 wrote: >> >>> So here what I have, I have a 3 IF's within the same level. If one IF >>> is satisfied, I would like to

Re: If one IF is satisfied, skip the rest in the nest...

2015-10-21 Thread Ian Kelly
On Wed, Oct 21, 2015 at 11:31 AM, wrote: > So here what I have, I have a 3 IF's within the same level. If one IF is > satisfied, I would like to "skip" the other IFs and continue with my code. I think you're looking for the elif keyword. An elif branch will only be