Python Forum
Reopen file if condition fails
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reopen file if condition fails
#3
Well,
I'm familiar with functions (know what they do but never used them before) as far as I understand they(functions) would do exactly the same thing as what the indentations do.
Code with indentations is easy to read (for me),
with functions, it becomes complicated, especially for people with minimal knowledge of python (like me) who do not want to complicate things. Not now.

I'm processing very similar files.
They all have a line that tells me which code to use for which file.
The line is "Loops : xx"
where 'xx' is a number of loops. One type of file has a number of loops always more than '1',
and the other is always '1' or less.

I thought I will open each file to check the Loop count, if a file has more than '1' loop I'll process it with one code.
If the number of loops is '1' or '0' I'll process it with a different code.

My thinking is based on what I know about Python, it is very limited...

Thank you.
Reply


Messages In This Thread
Reopen file if condition fails - by tester_V - Aug-18-2021, 06:05 AM
RE: Reopen file if condition fails - by Gribouillis - Aug-18-2021, 06:41 AM
RE: Reopen file if condition fails - by tester_V - Aug-18-2021, 05:15 PM
RE: Reopen file if condition fails - by deanhystad - Aug-18-2021, 05:42 PM
RE: Reopen file if condition fails - by Gribouillis - Aug-18-2021, 07:04 PM
RE: Reopen file if condition fails - by tester_V - Aug-20-2021, 06:51 PM
RE: Reopen file if condition fails - by ndc85430 - Aug-21-2021, 09:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  else condition not called when if condition is false Sandz1286 10 6,035 Jun-05-2020, 05:01 PM
Last Post: ebolisa
  [HELP] Nested conditional? double condition followed by another condition. penahuse 25 8,297 Jun-01-2020, 06:00 PM
Last Post: penahuse
  inserting photos in 1 sheet of a 6 sheet excel file fails Pedroski55 0 2,421 Mar-03-2018, 01:53 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

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