Change read/write expression for a derived tag of boolean array

Hi,

I wanted to know if it was possible to have a derived tag of data type “Boolean Array” and to have a read and write expression that are always the same but change the bit it points to as the same number of the element inside the array.

For example, this is my read expression toInt({source}) >> 0 & 1 and instead of 0 I would like it to point to the number of the element, for the first bit of the array it points to 0, for the second to 1, for the third to 2 etc…..

Otherwise I’ll have to create 32 separate bit and assign the derived expression manually.