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

Return value if Xdn ends with = #105

Open
iRon7 opened this issue Feb 16, 2025 · 0 comments
Open

Return value if Xdn ends with = #105

iRon7 opened this issue Feb 16, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@iRon7
Copy link
Owner

iRon7 commented Feb 16, 2025

Return value (instead of node) if the Extended Dot Notation (Xdn) string end with an equal (=) sign.

e.g.: PowerShell code returning results when 1 of the 2 variables are not found in JSON . Looking to enhance program

In stead of:

(Get-Content -Raw $file | ConvertFrom-Json |
    Get-Node ~entityType=Operator..characteristics.RatedOI.boolValue=true....id).value

I would like to do:

Get-Content -Raw $file | ConvertFrom-Json | 
    Get-Node ~entityType=Operator..characteristics.RatedOI.boolValue=true....id=
@iRon7 iRon7 added the enhancement New feature or request label Feb 16, 2025
@iRon7 iRon7 self-assigned this Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant