Show if different values

I would like to show a menu item if a level of user is correct, but I need multiple levels.

ie
dmx-show="(user.data.query1.level == 4 or 8 or 12 or 13 or 14)"

I have also tried dmx-show=“user.data.query1.level.contains(3,8,12,13,14)”

but it does not seem to work.
The query is a single query and not an array.

dmx-show="(user.data.query1.level == 4 || user.data.query1.level == 8 || user.data.query1.level == 12 || user.data.query1.level == 13 || user.data.query1.level == 14)"

Thats what I was thinking as well @Teodor was hoping there was a short way of doing, but guessing not. Thanks for that :slight_smile:

1 Like

I think putting the numbers in a list and using ‘contains’ would work - as explained in this thread.

I use this sort of thing quite a bit

([7,8,9].contains(commpara_id))

I hope this might help.

Tried that one, did not work for me for some reason.
But I may give it aniother try as Loki g at it I may ha e missed ()