Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use non-throwing alternative to $stepSize | Get-Member H #14

Closed
powercode opened this issue Jun 20, 2019 · 1 comment
Closed

Use non-throwing alternative to $stepSize | Get-Member H #14

powercode opened this issue Jun 20, 2019 · 1 comment

Comments

@powercode
Copy link

In

[bool]$RotatingColor = $StepSize | Get-Member H
,
throws an exception:

Cannot convert value "System.Management.Automation.PSCustomObject" to type "System.Boolean". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0

I suggest using a test like

[bool]$RotatingColor = $ColorSpace -in 'LCH', 'HSL', 'HSV', 'HSB'

or

[bool]$RotatingColor = $null -ne $StepSize.H
@Jaykul
Copy link
Member

Jaykul commented Jul 18, 2021

This is obviously gone with the rewrite to C#

@Jaykul Jaykul closed this as completed Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants