The concatenation won’t work out of the box, if you want to keep the dimensions.
You could of course flatten the condition tensor to [batch_size, -1] and concatenate in dim1, however you would have to check, if it fits your use case or not.