Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: zalbina on September 23, 2012, 07:00:00 pm

Title: Code Generation Template
Post by: zalbina on September 23, 2012, 07:00:00 pm
Hello,

I have attribute tagged value with some name "tagName", but without value, only name. So, how can I check in the template if the tagged value exists? This code does not work:

%if attTag:"tagName" =""%

because NO value. I tried ==NULL or ==EMPTY does not work also.


Thanks.
Title: Re: Code Generation Template
Post by: Dermot on September 24, 2012, 04:02:30 pm
Here is an example from the default template: ERD to Data modeling - Connector__Attribute:
%if connectorDestElemTag:"commonDataType"!= "na"%

One point - try correction:
%if attTag:"tagName" ==""%
Title: Re: Code Generation Template
Post by: zalbina on September 24, 2012, 08:21:30 pm
Thanks, but it does not work :(.
Title: Re: Code Generation Template
Post by: Dermot on September 25, 2012, 03:58:40 pm
Best that you put it through the proper processes and submit this via the support email.
Attach a simple example testing if this works.