One button 2 navigation path - depends on user

Hey guys,
I need help and I don’t even know if it is possible to do it.
I’m trying to make a button that if one user press it, it will navigate to a page, but if another user press it,it will navigate to a different page.
something like that:
{% set x = user %}
{% if (x == ‘user1’) %}
{% set navigation_path = ‘home1’ %}
{% else %}
{% set navigation_path = ‘home2’ %}
{% endif %}

but I don’t know how to even make a button like that or how can you change inputs under navugation_path. maybe anyone can help? or maybe have done something like that before?
Thanks
Tom

Hello,
I desire to do the same thing…
Target depending on the user…
I tried navigation_path: {{user}} to redirect to a tab in the dashboard corresponding to the name of the different users… but doesn’t work…
Any idea if something like this is feasible ?
Thanks in advance !