return()

Exits event and returns a value.

Syntax

return(value)

Parameters

Parameter Type Description
value Any The value to return from execution.

Return Value

Examples

Return a number

return(42);

Return a string

return("Finished");

Return a computed value

return(2 + 2);

Exit event

#MyEvent
  print("This is my event");
  return(1);
  print("This will not execute");

See also

exec
return

Events