In R, if I apply `ifelse( u > v, 1, 0)`

for two vectors `u`

and `v`

, it returns a vector containing 1 and 0 with the same length as `u`

and `v`

.

In Stan, seems to me that the conditional operator ` condition ? 1:0`

can only be used for real variables? So is there an equivalent function in Stan for vectors?