Adding OP's comment as an answer to help future visitors:
OPTIONS
line has a 72 char limitation, so if one has a long condition the solution would be to split it into several lines:
inputTableOptions = function.GetTable("OPTIONS");
string[] aWhere = sWhereExpression.Split("~".ToCharArray()); foreach (string cond in aWhere) { inputTableOptions.Append();
inputTableOptions.SetValue("TEXT", cond);