r/PowerShell • u/CloudStrifeDota • Jun 25 '24
Simple counter
Hello
I have no idea what I am doing so my apologies. I want a simple counter that starts at 0 and if the + key is pressed then the counter goes up to 1 and it displays the value. If pressed again then it goes to 2 and displays that. Can anyone assist me please.
0
Upvotes
-1
u/AncientMoose6539 Jun 25 '24
Here is a snippet that does what you want but will also lead you to realize you need to refine your line of questioning: