Re: Help me with syntax please

From: Martin Harvey (Demon account) (martin_at_nospam_pergolesi.demon.co.uk)
Date: 12/17/04


Date: Fri, 17 Dec 2004 20:03:18 GMT

On Fri, 17 Dec 2004 16:32:24 +0100, "Eddy Fontaine"
<eddy.remove.fontaine@pandora.remove.be> wrote:

>I understand that bFoundFile will be set TRUE or FALSE by FindFirst(),
>but what means the '= 0' at the end ?

if i = 0 then
  a := true
else
  a := false;

is the same as:

a := i = 0;

And in fact, the latter code is more efficient. (Uses setcc instead of
conditional branch).

MH.