Posting and formatting scripts

Posts: 785
To post a script, please use the "code" or "script" bbcode tags.

For the languages that ATVO supports, the script language is usually automatically detected. Sytnax highlighting (colors) are applied automatically based on the detected script language.

Example: C# script
public class Script : IScript
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
var entity = (IEntity) item;
if (entity.CurrentDriver.Id = 12345)
return entity.CurrentDriver.Name;
return "";

Edited (1 time)