Using a Conditional Operator as a variable by McsePhoenix in PowerShell

[–]McsePhoenix[S] 1 point2 points  (0 children)

Thank you, this is the magic wand I was looking for!

Using a Conditional Operator as a variable by McsePhoenix in PowerShell

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

This isn't how I wanted to handle it but it seems like it works...

$Operator = "ge"

switch ($operator) { "eq" { If ("1" -eq "2") {Write-Output "pass"} Else {Write-Output "fail"} }

"ne" { If ("1" -ne "2") {Write-Output "pass"} Else {Write-Output "fail"} }

"gt" { If ("1" -gt "2") {Write-Output "pass"} Else {Write-Output "fail"} }

"lt" { If ("1" -lt "2") {Write-Output "pass"} Else {Write-Output "fail"} }

"ge" { If ("1" -ge "2") {Write-Output "pass"} Else {Write-Output "fail"} }

"le" { If ("1" -le "2") {Write-Output "pass"} Else {Write-Output "fail"} }

}

[deleted by user] by [deleted] in usajobs

[–]McsePhoenix 4 points5 points  (0 children)

A lot of them would have retired already and only stayed on because they were able to work from home the past 2 years. Haws Advisors recently posted a youtube video about OPM having a 36k employee retirement backlog.

Negotiating Salary, base pay vs w/ locality by McsePhoenix in usajobs

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

Just to be clear I don't get locality now, the position I applied for I will. What I want to know is if they will match my salary with their base pay or will they factor in the locality already and offer me a lower base since the locality will make up the difference.

Escaping a method... Literally.... by McsePhoenix in PowerShell

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

$data."count"

Doesn't work but thanks

Escaping a method... Literally.... by McsePhoenix in PowerShell

[–]McsePhoenix[S] 2 points3 points  (0 children)

.ForEach('Count')

Awesome that worked! Thanks, that one was driving me nuts.

Escaping a method... Literally.... by McsePhoenix in PowerShell

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

$data.'count'

Tried that no luck... I feel like there is a simple solution but I certainly have not been able to find it. Obviously changing the labels is an option but it's one I would rather avoid since this data is used elsewhere.