denioflavio
12 years agoOccasional Contributor
Break procedure execution.
Hi!
I have a delphiscript coded like this:
But what I need to know is whether exists a statement that allow me write it in this way:
It´s looks like the break statement existing in while, for loops.
Thanks!!
I have a delphiscript coded like this:
procedure test(value : boolean);
begin
if (value = true)
Do Nothing
else
Do Something
end;
But what I need to know is whether exists a statement that allow me write it in this way:
procedure test(value : boolean);
begin
if (value = true)
Break procedure execution
Do Something;
end;
It´s looks like the break statement existing in while, for loops.
Thanks!!
- There is the Exit command in DelphiScript to break procedure / function execution.
But the case that you described can be coded like this:
procedure test(value : boolean);
begin
if (value = false)
Do Something
end;