IF( AND( ),true,false) in rules

Post Reply
telula
Posts: 99
Joined: Tue Nov 18, 2008 5:40 am

IF( AND( ),true,false) in rules

Post by telula »

Hello,
Will IF(OR(condition1,condition2),true,false) or IF(OR(condition1,condition2),true,false) work in rules?
Alan Kirk
Site Admin
Posts: 6647
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: IF( AND( ),true,false) in rules

Post by Alan Kirk »

telula wrote:Hello,
Will IF(OR(condition1,condition2),true,false) or IF(OR(condition1,condition2),true,false) work in rules?
Sure. If the "rules" are for Excel.

In TM1, however, the syntax is different. Refer to the Rules Guide, specifically the heading "Components of a Rule "
Using Logical Operators

You can combine expressions in a calculation statement using logical operators.

Operator: & (ampersand)
Meaning: AND
Example: (Value1 > 5) & (Value1 < 10)
Returns TRUE if the value is greater than 5 and less than 10.

Operator: % (percentage sign)
Meaning: OR
Example: (Value1 > 10) % (Value1 < 5)
Returns TRUE if the value is greater than 10 or less than 5.

Operator: ~ (tilde)
Meaning: NOT
Example: ~(Value1 > 5)
Equivalent to (Value1 <= 5)
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply