cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Link editor - & and | symbols

Former Member
0 Likes
457

What's the use of "|" (pipe) symbol available in the calculations area of the Link editor? I thought it was an "OR" operator. But it doesn't seem to work as an "OR"

Any ideas? I understand "&" is used to do a concatenate.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

In XPath, the "|" (pipe) symbol is used as << union >> between two or more node-sets, where as "&" (amp) is used for string concatenation (like Rick specified above).

(An XPath expression returns either a node-set, a string, a Boolean, or a number.)

That being said, if you have for example two nodes //HItemp (high temperatures) and //LOtemp (low temperatures) the expression "//HItemp | //LOtemp" returns a node-set with all high and low temperature elements.

Former Member
0 Likes

Here is the official description of the various operators (I authored much of the code in xMII that processes these expressions. ).

and : logical AND

or : logical OR

! : logical NOT

& : string concatentation

<, >, <=, >=, ==, != : logical comparison

*, /, +, - : basic arithmetical operators

% = modulo operator

^ = exponential operator

Inside of XPath expressions, the standard XPath rules apply.

- Rick

Former Member
0 Likes

Hi srini,

<b>" | "</b> this symbol working us a union operator when you are using xpath fumctions.

Regards,

P.S.Kishore kumar

abesh
Contributor
0 Likes

Hi Kishore,

Can you please give us an example of it's usage ?

Regards

Abesh

Former Member
0 Likes

hi,

As per my understanding the link editor is based on xPATH. I have gone through some tutorial pages of xpath.

In the logical expression thread you intimated that <b>or</b> and <b>and</b> is working as loical operators.

In the same way | this symbol is used for the purpose of union operator.

I am also working to make a good example. If you know something, plase update here.

Some one else is asked for the not opertor. Try with this.

<b>not()</b>

Regards,

P.S.Kishore kumar