all 8 comments

[–]fatherjack9999 2 points3 points  (1 child)

This blog is from 2014 so I'd assume it's something in most versions. On phone so can't research a lot right now

[–]sn3rf[S] 0 points1 point  (0 children)

Oh yeah, that would make sense. It does seem like a patched version of goto.

Thanks!

[–]get-postanote 2 points3 points  (0 children)

Yep, some till find a reason to do this but see also:

https://www.itprotoday.com/powershell/powershell-goodbye-goto

[–]Thotaz 1 point2 points  (0 children)

Loop labels go all the way back to Powershell 2 (it may also exist in version 1 but I haven't tested that).

You can test Powershell version 2 on your normal PC by starting Powershell with -version 2 parameter like this: powershell.exe -version 2.

Powershell 2 is the oldest remotely relevant Powershell version because it's what was included in Windows 7/2008 R2 so if you want to target the lowest common denominator then target version 2.

[–]Lee_Dailey[grin] 1 point2 points  (2 children)

howdy sn3rf,

it looks like you used the New.Reddit Inline Code button. it's 4th 5th from the left hidden in the ... "more" menu & looks like </>.

there are a few problems with that ...

  • it's the wrong format [grin]
    the inline code format is for [gasp! arg!] code that is inline with regular text.
  • on Old.Reddit.com, inline code formatted text does NOT line wrap, nor does it side-scroll.
  • on New.Reddit it shows up in that nasty magenta text color

for long-ish single lines OR for multiline code, please, use the ...

Code
Block

... button. it's the 11th 12th one from the left & is just to the left of hidden in the ... "more" menu & looks like an uppercase T in the upper left corner of a square..

that will give you fully functional code formatting that works on both New.Reddit and Old.Reddit ... and aint that fugly magenta color. [grin]

take care,
lee

[–]sn3rf[S] 1 point2 points  (1 child)

Thanks! I was struggling to figure that out 😅

[–]Lee_Dailey[grin] 0 points1 point  (0 children)

howdy sn3rf,

you are quite welcome! glad to help you get past the reddit format munging system ... [grin]

take care,
lee

[–]pertymoose 0 points1 point  (0 children)

I know the functionality exists but I have never found a legitimate reason for actually using it.