Question on C# for this snippet -- if the text is {-Variable.mytexthere-}, would the snippet be as follows?
var inputstring = {-Variable.mytexthere-};
string texttostring = (inputstring);
int count = texttostring.Split(' ').Length;
return count;
or the following:
var inputstring = project.Variables["mytexthere"].Value;
string texttostring = (inputstring);
int count = texttostring.Split(' ').Length;
return count;