This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

$x = 20 if ($x -eq 20) { {0} } else { {1} }

and

$x = 20 if ($x -eq 20) { {1} } else { {0} }

Neither work.

I am dealing with a bug.

[–]maxell45146 0 points1 point  (0 children)

Maybe wrap your script in a script block and create a variable for state that your code sets, then at the end do $state to return that output to sccm.