May-16-2020, 12:11 PM
I tried all that type of possible solutions without any luck.
It seems that when the logic is printing the lines 'section... --> False' (or True), each iteration of 'a' is treated independently according to the value of 'a'. However, as soon as I start putting a print instruction (or any other instruction for that matter) into the 'if condition', it seems that all 'PointFound' boolean values for all 7 sections are regarded as a list. In that case, since one of the seven booleans is True, all 7 lines get evalutaed as True.
Notice also that when using the 'if condition', the additional print instruction is already printed out for sections 1 and 2 PRIOR (!) to arriving at section 3, which is the first (and only) section that returns a value True for 'PointFound'
In other words : although looping through 'a' from 1 to 7, the 7 results are not returned as individual values but rather as a list that evaluates entirely to TRUE because one single value is True.
The strange part is why 'True' is only printed one time (for section 3) by the original print instruction while the additional print line is printed 7 times for each section.
It seems that when the logic is printing the lines 'section... --> False' (or True), each iteration of 'a' is treated independently according to the value of 'a'. However, as soon as I start putting a print instruction (or any other instruction for that matter) into the 'if condition', it seems that all 'PointFound' boolean values for all 7 sections are regarded as a list. In that case, since one of the seven booleans is True, all 7 lines get evalutaed as True.
Notice also that when using the 'if condition', the additional print instruction is already printed out for sections 1 and 2 PRIOR (!) to arriving at section 3, which is the first (and only) section that returns a value True for 'PointFound'
In other words : although looping through 'a' from 1 to 7, the 7 results are not returned as individual values but rather as a list that evaluates entirely to TRUE because one single value is True.
The strange part is why 'True' is only printed one time (for section 3) by the original print instruction while the additional print line is printed 7 times for each section.