I am trying to pull numeric values from a file where values are fixed length. For example, a sample line might be:
[GroupA]
Property1 12345 Property2 67890
[/GroupA]
I in this example would want to pull the value 12345 and compare it to a numeric standard to make sure the value is greater than or equal to the standard. I am trying to use the relevance statement (in part):
if
(substring before " " of substring(22,22) of lines
(
integers in
(
(
line number of line containing "[GroupA]" of it
)
+ 1 ,
(
line number of line containing "[/GroupA]" of it
)
- 1
)
)
of file "c:\documents\checkme.out") as integer
> 20000
The problem with this method is that the result is really plural, and when I try to compare it to the 20000, I get an error saying “Error: Singular expression refers to non-unique object.”
Has anyone got a solution to this so I’m only pulling one line? Thanks!