exists command

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


Mark Luljak propounded (on Mon, Dec 06, 2004 at 05:41:34PM -0500):
| With neither thought nor caution, J. P. Radley blurted:
| > 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
| 
| If I understood Ken correctly about non-boolean expressions, can't you
| knock that down to a single line?
| 
| if: exists("/tmp/rnx/banco.wp") eq "0"
| then: 'do something

Yes, you can...

-- 
JP


More information about the Filepro-list mailing list