请问是否有进行否定判断的方法,我并未在文档中找到相关描述。
我试图使用以下模板进行否定判断
- {{if !isLast(ds.companyKeywordList)}}
复制代码
程序报错
- GrapeCity.Documents.Word.InvalidTemplateFormatException: {{if !isLast(ds.companyKeywordList)}} : Identifier expected.
- at bd7.b(bds A_0)
- at bd7.c(bds A_0, bds A_1)
- at bd7.b(bds A_0, bds A_1, Int32 A_2)
- at bd7.b(bds A_0, bds A_1, Int32 A_2)
- at bd7.b(bds A_0, bds A_1, Int32 A_2)
- at bd7.c(bds A_0, bds A_1, Int32 A_2)
- at bel.a(List`1 A_0)
- at bel.a(List`1 A_0, CultureInfo A_1, Action A_2)
- at bel.a(Action A_0, Boolean A_1, CultureInfo A_2)
- at GrapeCity.Documents.Word.Templates.DataTemplate.Process(CultureInfo cultureInfo)
- at GcWordDemo.Controllers.GcWordController.GenWord(GenWordModel model) in /Users/lixiao/workspace/ey/code/demo/GcWordDemo/Controllers/GcWordController.cs:line 131
- at lambda_method2(Closure, Object, Object[])
- at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
- --- End of stack trace from previous location ---
- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
- at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
- at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
- at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
- at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
复制代码
|
|