Forum Discussion

denioflavio's avatar
Occasional Contributor
12 years ago

Break procedure execution.

Hi! I have a delphiscript coded like this: procedure test(value : boolean); begin     if (value = true)        Do Nothing    else         Do ...
  • dganov's avatar
    12 years ago
    There is the Exit command in DelphiScript to break procedure / function execution.

    But the case that you described can be coded like this:

    1. procedure test(value : boolean);

    2. begin

    3.     if (value = false)

    4.        Do Something  

    5. end;