Aperto Chiuso

Can a custom template use if-else conditions? #5277


User avatar
0
js1106 creato
  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How can I use the template provided by ABP Suite to conditionally check for custom if conditions? Is it possible to achieve functionality like the one shown in the image below? We want to generate the desired code when the condition if(displayName == "Name") is met. I have read the article but couldn't find any relevant information. https://docs.abp.io/en/commercial/latest/abp-suite/editing-templates


2 risposte
  • User Avatar
    0
    yekalkan creato
    Team di supporto Fullstack Developer

    Hi @js1106

    No, templates doesn't support if/else usage.

  • User Avatar
    0
    js1106 creato

    Hi @js1106

    No, templates doesn't support if/else usage.

    I got it, Thanks!

Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11