请问,如果有这样一个语句:
   if s=true then
     跳出这个语句
   else
     。
当s为真的时候用什么语句跳出这个if else语句,执行下面的语句?

解决方案 »

  1.   

    有这个必要吗可以是
    if not s then
    begin
    ...
    end;真要跳?那就GoTo语句了其实
    if s then else ...也一样的http://lysoft.7u7.net
      

  2.   

    如果用break来跳出程序提示在else那儿有问题!
      

  3.   

    不写任何代码就ok 啦。你是不是else 后面没有用begin end 引起来哦?!
      

  4.   

    if = then
    begin
     ...
     Break;
     ...
    end
    else
    begin
    end;
      

  5.   

    if 语句用的着break吗The Break procedure causes the flow of control in Delphi code to exit a for, while, or repeat statement and continue at the next statement following the loop statement.
    A call to Break must be contained in a for, while, or repeat statement, or the compiler reports an error.
      

  6.   

    if s = true then
    else
      你的代码