Using property name in analysis relevance

(imported topic written by Michael_Stone91)

Is there a way to use the name of the property in the relevance for that property?

I am trying to save myself some typing when I parse a file from a linux system with the following format:

property1 = value1

property2 = value2

property3 = value3

I am using this code to parse the file right now for each property in the analysis:

(parenthesized part 2 of it) of matches (regex “^(.+)=(.+)”) of (lines of file “/tmp/testfile”) whose (it contains “property1”)

Instead of contains “property1” I would like to use the name of the property from the analysis. The general idea is to create some reusable relevance that would prevent typos.

Any help would be appreciated,

Mike

(imported comment written by BenKus)

Hey Mike,

Unfortunately, you can’t reference property values from other properties in relevance… You will need to paste in your relevance code where the “property1” is…

Ben