return
return;
return ( return value );
If used inside a user-defined procedure or function: Returns from that called procedure / function, along with a return value, if provided.
In other cases: Similar functionality like end() procedure where control is either returned to the calling B4P program, or, if this is not the ase,
program execution will end.
The return value will be ignored in defined procedures or if the code is called as a procedure without retrieving the returned value.
Max. 1
No. | Type | Description |
---|---|---|
1. input |
all types | Return Value Return value to be passed to the calling program |
define function ( current time ) { return( time(now) ); }
echo( "Now, it's ", current time() );
Now, it's 21:56:24