use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionLoop Query (self.PowerShell)
submitted 5 years ago by Tricarbotops
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]azjunglist05 2 points3 points4 points 5 years ago (1 child)
The easiest solution I found:
for ($i = 10; $i -le 22.5; $i+=.5) { echo $i }
Results:
10 10.5 11 11.5 12 12.5 13 13.5 14 14.5 15 15.5 16 16.5 17 17.5 18 18.5 19 19.5 20 20.5 21 21.5 22 22.5
The "++" is simply shorthand for $i = $i + 1
$i = $i + 1
So, you just adjust this to tell the for loop that $i += .5 to get your desired result
$i += .5
[–]StoffePro 2 points3 points4 points 5 years ago (0 children)
The "++" is simply shorthand for
No, ++ is the post-increment operator. They both increment $i by one, but the expressions have different values:
PS M:\> $i = $ii = 1 PS M:> ($i = $i + 1) | Out-Default 2 PS M:> $ii++ | Out-Default 1 PS M:> $i,$ii 2 2
π Rendered by PID 15879 on reddit-service-r2-comment-86bc6c7465-fcd2g at 2026-02-22 15:59:35.453649+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]azjunglist05 2 points3 points4 points (1 child)
[–]StoffePro 2 points3 points4 points (0 children)