Have you considered to look for the syntax where it usually is defined? The documentation.
It's built right into SAP HANA Studio and also available online.
Just check the SQLScript documentation and you will find the syntax definition for how to define and use variables, structure programs and a lot more.