Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.
Users reporting for no reason may be locked out.
using System;
using ATVO.ThemesSDK;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;
using ATVO.ThemesSDK.Data.Enums;
namespace Scripts
{
public class CheckCondition : IScript
{
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
var c1 = item.Theme.ConditionFlags.CheckState("C1");
var c2 = item.Theme.ConditionFlags.CheckState("C2");
var c3 = item.Theme.ConditionFlags.CheckState("C3");
return c1 && (c2 || !c3) && sim.Session.Current.State == SessionState.Racing;
}
}
}