If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Multiple Instances

Started by gops210, 06 Mar 2012 05:44:57 PM

Previous topic - Next topic

gops210

Hello all,

Is it possible in eventstudio to check for two conditions like below.

(([Dataitem1] = 'A' and [Dataitem2] >0) and ([Dataitem1] = 'B' and [Dataitem2] >0)

This is not working for me.Only one condition im able to test at a time.Please help.

Thanks in advance.

Lynn

I think the problem lies with your expression. It should be a boolean that results in either true or false.

Your expression can only ever resolve to false because you have "and" between the two conditions. Can [Dataitem1] EVER be equal to 'A' AND equal to 'B' at the same time? Nope. It can't. Also, you have an extra parenthesis at the start which is incorrect syntax.

Maybe one of these two expressions is what you really mean to check for:

([Dataitem1] = 'A' and [Dataitem2] >0) or ([Dataitem1] = 'B' and [Dataitem2] >0)



([Dataitem1] in ( 'A', 'B' ) and [Dataitem2] >0)