Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Define variable in a template
Define variable in a template [message #1735212] Thu, 16 June 2016 11:04 Go to next message
Habtamu Tolera is currently offline Habtamu ToleraFriend
Messages: 20
Registered: June 2016
Junior Member

I started using Acceleo recently, so I am new. I want to define variable in a template to use it in the same template. I want to read and write to this variable many times in the template. How to define a variable other than using 'let'?

Best regards,
Re: Define variable in a template [message #1735568 is a reply to message #1735212] Tue, 21 June 2016 09:10 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1901
Registered: July 2009
Senior Member

There is no way to write into a variable other than its initialization expression, even with a "let". Acceleo expects users to think their generation templates without using such variables. Could you tell us what you are trying to accomplish? we might be able to help on how to do things differently.

Laurent Goubet
Previous Topic:Re: Acceleo loop problem
Next Topic:Using multiple input files (though one model) to generate
Goto Forum:

Current Time: Mon Dec 04 14:09:07 GMT 2023

Powered by FUDForum. Page generated in 0.02161 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top