CONTINUE

Post Reply
wypwong
Posts: 22
Joined: Tue Aug 13, 2013 2:35 pm
OLAP Product: TM1
Version: TM1 10.1
Excel Version: 2007

CONTINUE

Post by wypwong »

Hi all

I am a beginner in TM1, and I am looking at the IBM rules guide.
I can't seems to understand this CONTINUE example they use in the guide.

['Jan']= if(!region @= 'Argentina',10,CONTINUE);['Jan']=20;

Why can't they just write it as below:
['Jan']= if(!region @= 'Argentina',10, 20);

Thanks in advance.


Phyllis
declanr
MVP
Posts: 1828
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: CONTINUE

Post by declanr »

wypwong wrote: ['Jan']= if(!region @= 'Argentina',10,CONTINUE);['Jan']=20;

Why can't they just write it as below:
['Jan']= if(!region @= 'Argentina',10, 20);
You can write it either way. CONTINUE is a fairly common concept and can be used to make coding more user friendly but the use of it is largely down to personal preference, normally CONTINUE would be used in slightly more complex examples where there are lots of IFs... but even then you can just nest your IF statements. The example you've shown is very basic and both methods would give the exact same result. As with almost anything in TM1 there are multiple ways to do get the same result.
Declan Rodger
wypwong
Posts: 22
Joined: Tue Aug 13, 2013 2:35 pm
OLAP Product: TM1
Version: TM1 10.1
Excel Version: 2007

Re: CONTINUE

Post by wypwong »

Declan

Thanks for the clarification.

It makes a lot more sense now.

P
Post Reply