示例#1
0
        /// <summary>
        /// pisahkan antara operator dengan 2 value
        /// </summary>
        /// <returns>
        /// [0] => Value 1
        /// [1] => Value 2
        /// [2] => Operator
        /// </returns>
        public static string[] arrIF(string data)
        {
            List <string> result;

            if (data.Contains("=="))
            {
                result = new List <string>(Cf.SplitByString(data, "=="));
                result.Add("==");
            }
            else
            {
                result = new List <string>(Cf.SplitByString(data, "=="));
                result.Add("==");
            }

            return(result.ToArray());
        }