Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [atl] use of if...then in helpers
[atl] use of if...then in helpers [message #35014] Sat, 28 April 2007 19:04 Go to next message
Eclipse UserFriend
Originally posted by: touzitou.enstimac.fr

Hi to all;
My question is about the use of the (if...then )in helpers..
I can do it just if there is just one if , and one else.
like that:
if ...Condition
then....do1
else..do2
Endif

This is possible with helpers and without mistake.
but What I want to do is :

if ...Condition1
then....do1
else if ...Condition2
then....do2
else if ...Condition3
then....do3
else..do4
Endif

This is don't work ..there is syntax mistakes..

So what happen ? why i can't do that..? There is another solution???
Thxs much

Jihed
Re: [atl] use of if...then in helpers [message #35048 is a reply to message #35014] Sat, 28 April 2007 19:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.vepa.gmail.com

Hi jihed,

You have forgotten the "endif" for each inner if statement.
It may look like this :

if ...Condition1
then....do1
else if ...Condition2
then....do2
else if ...Condition3
then....do3
else..do4
endif
endif
endif

jihed touzi wrote:
> Hi to all;
> My question is about the use of the (if...then )in helpers..
> I can do it just if there is just one if , and one else.
> like that:
> if ...Condition
> then....do1
> else..do2
> Endif
>
> This is possible with helpers and without mistake.
> but What I want to do is :
>
> if ...Condition1
> then....do1
> else if ...Condition2
> then....do2
> else if ...Condition3
> then....do3
> else..do4
> Endif
>
> This is don't work ..there is syntax mistakes..
>
> So what happen ? why i can't do that..? There is another solution???
> Thxs much
>
> Jihed

--
Éric Vépa
Re: [atl] use of if...then in helpers [message #35082 is a reply to message #35048] Sat, 28 April 2007 20:48 Go to previous message
Eclipse UserFriend
Originally posted by: touzitou.enstimac.fr

Merci Eric !!
I think it will work !!


Éric Vépa wrote:
> Hi jihed,
>
> You have forgotten the "endif" for each inner if statement.
> It may look like this :
>
> if ...Condition1
> then....do1
> else if ...Condition2
> then....do2
> else if ...Condition3
> then....do3
> else..do4
> endif
> endif
> endif
>
> jihed touzi wrote:
>
>>Hi to all;
>>My question is about the use of the (if...then )in helpers..
>>I can do it just if there is just one if , and one else.
>>like that:
>>if ...Condition
>>then....do1
>>else..do2
>>Endif
>>
>>This is possible with helpers and without mistake.
>>but What I want to do is :
>>
>>if ...Condition1
>>then....do1
>>else if ...Condition2
>>then....do2
>>else if ...Condition3
>>then....do3
>>else..do4
>>Endif
>>
>>This is don't work ..there is syntax mistakes..
>>
>>So what happen ? why i can't do that..? There is another solution???
>>Thxs much
>>
>>Jihed
>
>
Previous Topic:[ATL] ATL transform performance problems
Next Topic:[ATL] UDF electors transformation
Goto Forum:
  


Current Time: Thu Apr 25 17:46:07 GMT 2024

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

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

Back to the top