Report post

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.


Post

Posted by Emmanuel S
on
Thanks, I do (only 3 hours to understand .... :(  )
With that code it is ok
using System;
using ATVO.ThemesSDK;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;

namespace Scripts
{
public class Scripts1 : IScript
{
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
// Get databinding value as string:
string sessionname = value.ToString();

if (sessionname == "Practice")
return "";

if (sessionname == "Race")
return "Lap";

else
return value;


}
}
}

I put value for else to check what hapen !

Now I try do the same with a non text label : currentlap
I look what I have to change ...