COMPARE() (was Re: browse keys (@bk))

Jay R. Ashworth jra at baylink.com
Tue Jul 20 17:40:36 PDT 2004


On Tue, Jul 20, 2004 at 06:58:45PM -0400, Kenneth Brody wrote:
> Fairlight wrote:
> [...]
> > 4.5  COMPARE            Compares two values, with case sensitivity.
> > 
> >       Syntax:
> > 
> >            xx = COMPARE(expr1,expr2)
> > 
> > Am I to assume that you cannot simply say:
> > 
> > If: not compare(aa,ab)  'failure case
> > Then: 'do something
> > 
> > If you can't, then yes it's possible to compare sensitively, but you
> > have to use extra lines of processing to do it, assigning a value first,
> > then checking it,
> 
> Why?  Simply check the return value from compare() on the if line:
> 
>     If:  compare(aa,ab) ne "0"
> 
> > when technically it could be handled with a few extra
> > built-in operators.
> > 
> > I didn't think you could use a function on an If line in fP in this
> > fashion.  If you can, please tell me, because that would be Good News[tm].
> 
> Boolean functions, yes.  Arithmetic functions, no.

"COMPARE" isn't a boolean function?

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274

	"You know: I'm a fan of photosynthesis as much as the next guy,
	but if God merely wanted us to smell the flowers, he wouldn't 
	have invented a 3GHz microprocessor and a 3D graphics board."
					-- Luke Girardi


More information about the Filepro-list mailing list