User Guide
Software Crestron SIMPL+
®
302 z SIMPL+
®
Language Reference Guide - DOC. 5797G
x = x + y + myFunc(1); // ok
break;
}
}
}
}
return (1);
}
INTEGER_FUNCTION AnotherFunc( INTEGER i )
{
x = (1 + str); // error – cannot add an integer
// and string
if ( x > “abc” ) // error – cannot compare an
integer
// and string
{
if ( str ) // error – cannot check the
validity
// of a string
{
if ( str = MyFunc(1) ) // error – cannot add strings
// and integers together
{
while ( str < “abc” ) // ok
{
x = (x + ); // error – incomplete expression
break;
}
}
}
}
return (1);
}