Operator for ∈, x ∈ [1,...,n]

Hi i’m propably just bad at googling, but I couldn’t find the operator for ∈ (is an element of).
As example for what I would like to do:
if( x ∈ [1,…,n], {then}, {else});

like this…


perfect thanks. There is no symbol for this?

Nope, unicode characters are still the exceptions in programming languages (I think). The only language that I have used that supports such a feature is Julia.

1 Like