How to show if value contain a or b

I have a nav link I would like to show if it is a certain number.

Currently I have this

dmx-show="(current_user.data.query1.level == 3 || current_user.data.query1.level == 8)

Is there an easier way to do this so for expample it 3 || 8 so I don’t need to keep adding the full current_user etc

Community Page
Last updated: