Looking for a way to perform Bitwise OR operation between n number.

Hi there,

 We  have a requirement where we need to generate masked value, based on the selected checkbox,

For generating masked value, we will be required to perform bitwise or operation between the selected value of the checkbox.

let us say we have 4 checkbox 

SUNDAY = 0 

 Monday = 1

Tuesday = 2

Thursday =3

 now based on the user selection we need to perform the bitwise or operation  between the selected value i.e

masked value  |=  (0,1,3)

is there any way to perform the bitwise or operation in Appian..?

 

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Hi Mike ,

    Need to perform Bitwise OR operation  between  numbers. 

    So , In the above given example let us say user selected check box for  sunday and monday and thrusday ,

    in that case i need to generate masked value ,

    masked Value formula will be  

    maskedValue = 0 | 1 | 3   i.e bitwise OR (0 ,1,3).

    Looking forward for a way to perform bitwise or operation in appian.

    No , or does not fit into our requirement.

    Thank you for the inputs.