--
Thanks,
Bob
if you want to use GOTO to call a subroutine then use a PowerShell function
if you want to loop then use one of the looping constructions for, do, while
as appropriate
if you want to post your code showing how you are trying to use goto we can
give you the PowerShell equivalent
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk
You don't because PowerShell isn't designed to be used that way. I suggest you
read a little bit about different programming paradigms on Wikipedia, there's
some interesting stuff in there. The short version is that PowerShell is an
object-oriented language rather than procedural. Goto is an example of a
statement used in unstructured procedural programming. Some links:
http://en.wikipedia.org/wiki/Procedural_programming
http://en.wikipedia.org/wiki/Object_oriented_programming
If you are having trouble wrapping your head around the concept, let us know
what the problem you are trying to solve is and we can give you some concrete
examples.
For the record, I do NOT have a CS degree. :)
--
Hal Rottenberg
Blog: http://halr9000.com
Webmaster, Psi (http://psi-im.org)
Co-host, PowerScripting Podcast (http://powerscripting.net)
RMSe17
On Jan 22, 3:07 pm, "Karl Prosser[MVP]" <karl@p_o_w_e_r_s_h_e_l_l.com>
wrote:
goes perl, ruby and python have a goto?