private ISFSArray ExpressionAsSFSArray() { ISFSArray iSFSArray = new SFSArray(); if (logicOp != null) { iSFSArray.AddUtfString(logicOp.Id); } else { iSFSArray.AddNull(); } iSFSArray.AddUtfString(varName); iSFSArray.AddByte((byte)condition.Type); iSFSArray.AddUtfString(condition.Symbol); if (condition.Type == 0) { iSFSArray.AddBool(Convert.ToBoolean(varValue)); } else if (condition.Type == 1) { iSFSArray.AddDouble(Convert.ToDouble(varValue)); } else { iSFSArray.AddUtfString(Convert.ToString(varValue)); } return(iSFSArray); }