Skip to Content
0

How to use OR operand in calculation?

Jan 16, 2017 at 02:19 PM

15

avatar image

SAP Lumira Desktop

Version: 1.31.3

Build: 127

I am trying to use an OR operator in my calculation but having some problems.

My calculation looks like this:

IF {Name} = "Tom" OR "Dave" THEN True
ELSE False 

However this calculation gives me the following error:

Function or expects parameter 2 of type 'boolean', but receives 'string'. 
Try using the expected parameter type. 

The details of the OR operand shows as:

Uses left operand (<lhs>) or right operand (<rhs>) Boolean inputs to 
determine whether a condition is true or false
For example:
true or false returns true 

Does this mean that OR can only be used against 'TRUE' and 'FALSE' values (boolean values).

If yes, doesn't that limit the possible functionality of this operand to the example itself. (i.e. you can only say if true or false then true... seems kind of pointless).

Is there a way to use OR with other value types (integers, strings etc)?

or-statement.png (48.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers