Not that i have ever done this, but i can imagine the above code would be about same as this
Code:
if (a = b) = True then
begin
  ...
end;
Let's hope the compilers know how to optimize the extra comparison out of executable.