User Guide
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 279
Example Programs
Example 1: Hello, World!
// A digital input from the SIMPL program DIGITAL_INPUT
TRIG;
// Upon the digital signal TRIG going high or low, the Hello,
// World! message is printed.
CHANGE TRIG
{
PRINT(“Hello, World!\n”);
}
// Main is only called once when the system starts up or is
reset.
FUNCTION MAIN()
{
PRINT(“Main Starts!\n”);
}