How to concantenate string values in relevance

I need concatenate the next relevance property add “%” but get a error
(string values of selects "LoadPercentage from Win32_Processor" of wmi)
help me please

Can you maybe copy in the results you get? The WMI query brings up a single result on my machine though it is a plural string. You can concatenate it to make it a singular string

Q: (string values of selects "LoadPercentage from Win32_Processor" of wmi)
A: 26
T: 2122.340 ms
I: plural string

Q: concatenation "|" of (string values of selects "LoadPercentage from Win32_Processor" of wmi)
A: 11
T: 1065.022 ms
I: singular string
1 Like

Is this a %-encoding issue?

The ‘%’ character is used to encode certain ‘tricky’ characters (such as %22 to get a double-quote) but this means that the % sign itself needs to be encode as %25.

This isn’t helped by the relevance debugger getting itself in a tangle with %25…

Yeah, that plus appending a string to each result in a plural string

Q: (it & "%25") of (string values of selects "LoadPercentage from Win32_Processor" of wmi)
A: 16%25
A: 8%25
T: 2040.904 ms
I: plural string

image

Takes a long time in relevance terms to process but then again, thems the pitfalls of inspecting WMI.

1 Like

Hi all, @SLB, thanks a lot for helping