Starts in:
2 DAYS
4 HRS
46 MIN
33 SEC
Starts in:
2 D
4 H
46 M
33 S
Open Closed

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


User avatar
0
js1106 created
  • 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 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @js1106

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

  • User Avatar
    0
    js1106 created

    Hi @js1106

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

    I got it, Thanks!

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06