|
Re: Acceleo how to change the value of a variable of type String [message #1272577 is a reply to message #1272397] |
Tue, 18 March 2014 04:37  |
Eclipse User |
|
|
|
Hi
I suspect that you are trying to make an immutable String mutable, but
it's only a guess. Acceleo extends OCL and is declarative so you cannot
reassign variables, you create new ones.
You might find https://wiki.eclipse.org/OCL/ForumNetiquette provides
some ideas on more effective communication.
Regards
Ed Willink
On 17/03/2014 20:36, trimech saber wrote:
> Hi, I created a variable of type String with the default value an
> empty string {test: String ='';}, I would like to change this value
> according to a conditional test , I try assignment with operation
> '=' [test = 'Public' /] but it does not work, I try [test.concat
> ('Public') /] but this command display the result in the file
> generation, I just made the change the value of variable without
> displaying the result ......
|
|
|
Powered by
FUDForum. Page generated in 0.07739 seconds