Concatenate retreived properties

(imported topic written by kellypa91)

Hi have been looking for a way to concatenate the value of 2 seperate values into one value. Either combine the value of 2 predefined properties or pull out 2 new properties and return them as one concatenated value. For example:

How would you combine the value of the Mac Address with the value of the OS Language into one value returned.

“00-00-00-56-56-56English”

Thanks a abunch.

Paul

(imported comment written by kellypa91)

Never mind I think i found what i was looking for. Using the , and the newer version of Qna.exe seemd to work out.

Paul

(imported comment written by jessewk)

There are many ways to do concatenation. It sounds like you found the ‘tuple’ operator which allows you to create sets of objects with different types. You’ll get the behavior you’re looking for as long as there is only one object in each tuple item. If there are multiple values in one of the tuple items your result would be a cross product of the tuple items, which is not what you’re looking for in this case. See the advanced Fixlet authoring guide for more on tuples.

Another common way to concatenate objects that can be cast to or is to use the concatenation inspector:

Q: concatenation of (“foo”; “bar”; “baz”)

A: foobarbaz

Q: concatenation ", " of (“foo”; “bar”; “baz”)

A: foo, bar, baz

You can also use the concatenation operator:

Q: (“foo” & “bar” & “baz”)

A: foobarbaz

Q: (“foo” & ", " & “bar” & ", " & “baz”)

A: foo, bar, baz