exists command

Fairlight fairlite at fairlite.com
Mon Dec 6 14:41:34 PST 2004


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

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

Dunno.  I agree with you here.

mark->
-- 
Bring the web-enabling power of OneGate to -your- filePro applications today!

Try the live filePro-based, OneGate-enabled demo at the following URL:
               http://www2.onnik.com/~fairlite/flfssindex.html


More information about the Filepro-list mailing list