I did that, but after reading through all the posts... I did not see a response that explains the process. I know how to use the function, but I want to know what the code behind the function is doing. In other words, does it use a simple search and determine if the file/directory given is in the list and return 0 or 1 based on if the file/directory was in that list?

The reason for all of this is we used to have a login script (developed before I started) that used ICMP (which was allowed through Cisco ISE)... they don't seem to like the IF EXIST().... don't know why.