exists command

Jean-Pierre A. Radley appl at jpr.com
Mon Dec 6 14:35:46 PST 2004


Dennis Malen propounded (on Mon, Dec 06, 2004 at 05:12:23PM -0500):

| I am using the exists command in the following manner:
|
| if: exists("/tmp/rnx/banco.wp") le "0" Then: (do something)
|
| Am I using exists wrong. I have quotes in the paren. If I take the
| quotes out I get an error.

Use the dcabe help file, which shows you that the syntax is

	a=exists(file).

Thus you want:

	then: ee=exists("/tmp/rnx/banco.wp")
	  if: ee eq "0"
	then: do something

(But why were you using 'le' instead of 'eq'?)

-- 
JP


More information about the Filepro-list mailing list