private bool CheckNumber()

in src/extensions/speech_extension/helpers/output_helper.cs [2285:2298]


        private bool CheckNumber(int n1, string checkName, string checking)
        {
            int n2 = 0;
            bool pass =
                (checking.StartsWith("eq=") && int.TryParse(checking.Substring(3), out n2) && n1 == n2) ||
                (checking.StartsWith("ne=") && int.TryParse(checking.Substring(3), out n2) && n1 != n2) ||
                (checking.StartsWith("le=") && int.TryParse(checking.Substring(3), out n2) && n1 <= n2) ||
                (checking.StartsWith("lt=") && int.TryParse(checking.Substring(3), out n2) && n1 < n2) ||
                (checking.StartsWith("gt=") && int.TryParse(checking.Substring(3), out n2) && n1 > n2) ||
                (checking.StartsWith("ge=") && int.TryParse(checking.Substring(3), out n2) && n1 >= n2) ||
                (int.TryParse(checking, out n2) && n1 == n2);

            return pass;
        }