exists command

Dennis Malen dmalen at malen.com
Mon Dec 6 14:56:34 PST 2004


To Jean-Pierre and Mark,

When I was informed that "exists" in fact existed the example I was given
was to use it on a conditional line and to use "le". Obviously, I must have
mis-understood the responder. I will try the use of the dummy variable and
use "eq". I'm sure that will work. Although I still don't understand why my
approach would not work.

Thanks all!

Dennis Malen
516.479.5912

----- Original Message ----- 
From: "Fairlight" <fairlite at fairlite.com>
To: "FilePro Mailing List" <filepro-list at seaslug.org>
Sent: Monday, December 06, 2004 5:41 PM
Subject: Re: exists command


> 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
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>




More information about the Filepro-list mailing list