BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
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!

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.