I want to use boolean operations on variable. Here is the code:

```
with pm.Model() as hierarchical_model:
tau = pm.Uniform('tau', lower=1, upper=100)
for t in range(ntrials):
if t < tau:
......
else:
......
```

while I receive the error:

TypeError: Variables do not support boolean operations.

I try to use `if tau.gt(t)`

to replace `if t < tau`

, but receive the error:

AttributeError: ‘TensorVariable’ object has no attribute ‘gt’

I have also update NumPy to 1.22

Thanks for any help!