I've provided you an example. If construction should be in () and after if construction you have to use {, but in your script you didn't.
Please study how to work with ST scripts more carefully before asking questions: teslascada.com/HTML/st-language.html
Best regards,
Ruslan
The administrator has disabled public write access.