Exemple #1
0
        public static IValue IsFunctionDefined(IExecutionContext ctx, IList<IArgument> arguments)
        {
            var args = CommandUtilities.ManageArguments(arguments)
                .Exactly(1)
                .CanConvert<string>(0)
                .Results();

            return new GenericValue<bool>(ctx.HasCommand(args[0].GetValue<string>()));
        }