10-03-04 01:59 AM
I'm writing what should be a simple functoid to return one of two strings
based on an incoming boolean parameter.
This code works in a script functoid using Inline C# but returns nothing
when I put it in an external functoid that's been GAC'ed.
public string IfThenElseScript(bool boolVal, string trueVal, string falseVal
)
{
string target = "NULL";
if (boolVal)
{
target = trueVal;
}
else
{
target = falseVal;
}
return target;
}
--
RichardT
[ Post a follow-up to this message ]
|