Feature construction widget on Orange 3.13
As per Feature Constructor widget documentation, the expression field should return values from $[0, n]$, and the Values field should contain $n+1$ comma-separated labels.