Beispiel #1
0
        public override IElement Action(ArgumentContainer Args)
        {
            var first = Args.GetVisitedArgument("first");
            var rest  = Args.GetVisitedRestArguments().Value;

            if (first == null || rest.Count == 0)
            {
                return(new TrueFalse().Initialize(true));
            }

            foreach (var p in rest)
            {
                if (!p.Compare(first))
                {
                    return(new TrueFalse().Initialize(false));
                }
            }
            return(new TrueFalse().Initialize(true));
        }