Looking for help matching up an IP address in a file. I am doing this by range and for 90% of the devices this works fine. I will put up the line that seems to fail:
“{(((( line of it) whose ((preceding text of first “,” of it as version <= parameter “LOCALIP” as version) AND (preceding text of first “,” of (following text of first “,” of it) as Version >= parameter “LOCALIP” as version))) of file “c:\temp\list.txt” of (client folder of site whose (Name of it = “actionsite”))|“NOMATCH”))}”
Now the PARAMATER does get set (I check that before this line in the action and it will skip it if it is not valid).
Example of a run below:
And then I took the IP address of the devices that failed and put in the DEBUGGER (hard coding the IP address in question):
This should ONLY match that last line not the first one. To prove that I put this in debugger:
And yes I did this casting as VERSION as well (not shown above). I don’t get why 100’s of devices work fine and match their range in the file, while a HANDFUL seem to match multiple lines. I removed the last part (removing the AND statement which I thought maybe I messed up something)
AND (preceding text of first “,” of (following text of first “,” of it) as Version >= parameter “LOCALIP” as version
And as expected it MATCHES multiple lines as it only test for the START of the range, so to me it proves that my AND statement is programmatically correct.