Function Names
null
Synopsis
null ( parameters ... );
Description
This function does nothing, but is otherwise useful:
- As it accepts any number and type of parameters, it is automatically used as a placeholder function in case the original function name is not found but the code should not run (e.g. false condition inside an if(…) block).
- Temporary placeholder for any other function to choose
- Easy way to get obtain a 'void' value if needed.
- Hidden to the programmer, it is used to parse over user-defined functions fast and efficiently.
Call as: procedure or function
Restrictions
Indirect parameter passing is disabled
Parameter count
min. 0
Parameters
No. | Type | Description |
Any input |
all types |
Parameter
Any valid and invalid parameters. They will be ignored.
|
Examples
null; // No effect
null (a, 1, true); // No effect
echo( null( ) ); // Outputs '# void value #'
echo( null( a, 1, true ) ); // Outputs '# void value #'
Output
# Invalid Value #
# Invalid Value #
Try it yourself: Open
LIB_Function_null.b4p in
B4P_Examples.zip. Decompress before use.