procedure TForm2.Button1Click(Sender: TObject);
  function test(value:boolean):boolean;
  begin
    result:=value
  end;
begin
  if (1=2) and test(false) then showmessage('ok');

end;

前置逻辑为真是会执行test,为假是不执行。

相关文章:

  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-07-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案