Python Forum
Using "goto" to jump to lines ?!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using "goto" to jump to lines ?!
#7
(Jan-28-2017, 07:30 PM)LOLO Wrote: But how can I return at the line i want :(

please answer quickly...

I use python in a site vers 3.3

Python is not Fortran or Basic. You don't return to a line... Computer languages have removed this capability in the 80s for good reasons. If you want to execute some code when a condition is true, then you have an if statement followed by a "block" that contains the code to execute if this condition is true. Good programming style recommends that where there are many statements (big block),  these statements are put in a function, and the block just becomes a "call" to the function.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Messages In This Thread
Using "goto" to jump to lines ?! - by LOLO - Jan-27-2017, 05:22 PM
RE: Using "goto" to jump to lines ?! - by Kebap - Jan-28-2017, 07:17 PM
RE: Using "goto" to jump to lines ?! - by LOLO - Jan-28-2017, 07:30 PM
RE: Using "goto" to jump to lines ?! - by Ofnuts - Jan-28-2017, 09:52 PM
RE: Just a little problem - by Ofnuts - Jan-27-2017, 06:19 PM
RE: Just a little problem - by LOLO - Jan-28-2017, 10:04 AM
A BIG PROBLEM PLEASE ANSWER - by LOLO - Jan-28-2017, 06:45 PM

Forum Jump:

User Panel Messages

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