Functions are the core item of BlockScript. This page highlights some of the core features and concepts of a Function.
When you start on BlockScript, an example Function will be generated. You may edit this freely.
Please Note: Deleting is irreversible and cannot be undone
Saving a Function occurs when performing a number of actions such as:
However if you wish to save manually:
Parameters determine the data a Function takes in. To edit Parameters:
Return Type determines the result data type of a Function. To change the Return Type of a Function:
<img width="300" src="/assets/images/parameters.png" />
When using a Function inside another Function, this will cause the settings and Parameters to lock to prevent changes.
<img width="300" src="/assets/images/parameterLocked.png" />
Under 'Settings' in sidebar. This is a premium feature which allows you to execute your code in the cloud. This also allows for other features such as Function Scheduling or our <a href="/api">REST API</a>. Please check https://blockscript.app homepage premium section for usage limits and pricing.
Under 'Settings' in sidebar. This is a premium feature which allows you to run Functions using our <a href="/api">REST API</a>. Read more about it <a href="/api">here</a>.
Under 'Settings' in sidebar. This is a premium feature which allows running of Functions based on a <a href="https://crontab.guru/">CRON</a> schedule. Maximum frequency, every minute.
Please note: Scheduled Functions will have no Start Parameters available.
<img width="600" src="/assets/images/running.png" />