Basic Structure and Syntax
Basic Structure and Syntax
There are mandatory rules that must be followed for scripts to compile and run:
| Programming Language | Mandatory Structure | Description |
| C# | public class MainClass | All code must be contained within this class. It is essential for compilation. |
| VB | Public Class MainClass | All code must be contained within this class. It is essential for compilation. |
| C# | public void Main() | This method is triggered and executed first when the script runs. |
| VB | Public Sub Main | This subroutine (Sub) is triggered and executed first when the script runs. |
Note: Users can define as many additional Classes, Subs, or Functions as they wish within the MainClass.
