Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 311

PowerShell Studio • Run Selection In Console - Not reading If Else correct

$
0
0
Product: PowerShell Studio 2024 (64 Bit)
Build: v5.8.241
OS: Windows 10.0.19045
PS Version(s): 5.1.19041.1, 7.4.2
Something I never had an issue with before latest version.
* Highlight Select a section of code.

Code:

$cnt = 0$Active = $falseIf ($Active) { $cnt = 3 }Else { $cnt = 5 }$cnt
* Press F8 or select "Run Selection in Console" .
It produces an error --
This code works if with PS window or any other method.
PS_Selected_If_Else.jpg
PS_Selected_If_Else2.jpg

Statistics: Posted by Dlashley — Thu May 02, 2024 10:09 am — Replies 1 — Views 16



Viewing all articles
Browse latest Browse all 311

Trending Articles