BF2Statistics.MedalData.ObjectStat.ToPython C# (CSharp) Method

ToPython() public method

Converts the Condition into python executable code
public ToPython ( ) : string
return string
        public override string ToPython()
        {
            // This can be returned 2 different ways based off of Value
            return (Params.Count == 4)
                ? String.Format("object_stat('{0}', '{1}', {2})", Params[1], Params[2], Params[3])
                : String.Format("object_stat('{0}', '{1}', {2}, {3})", Params[1], Params[2], Params[3], Params[4]);
        }