check for existence of project custom property

Posts   
 
    
chanwwww
User
Posts: 2
Joined: 12-Mar-2008
# Posted on: 23-Feb-2009 17:35:21   

Hi,

I would like to modify one of the template files, to check for the existence of a project custom property...and based on whether the property exists, generate 2 different segments of code. How would I go about doing this? thanks in advance for help.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39771
Joined: 17-Aug-2003
# Posted on: 24-Feb-2009 10:37:41   

You can use the TDL statement: <[If StringValueEquals StringValueName__QuotedString]> text <[EndIf]>

where StringValueName is CustomPropertyName or CustomPropertyValue and QuotedString is the value in quotes to compare with. Use this if statement in a foreach statement like this one: <[Foreach CustomProperty Argument Separator]> text <[NextForeach]>

See the SDK docs of TDL for details about these statements.

Frans Bouma | Lead developer LLBLGen Pro