Location formula

Hi community,

I would like to be able to change my widget location when I click on one part of the widget.

I am seen on reddit that it is possible to do so by using a formula for locations. Although I can do this for the time zone, it appears that it is not possible with the location.
What I would like would be something like $if(li(loc)=A, li(loc)=B, li(loc)=A)$ - I'm only alterning between two locations.

Could you please help?

I apologize if this question has been asked before - could not find it though

Thanks in advance
Regards,

You haven't this option at this moment in Kustom apps, what you can make is put the information what you want in an Overlap Group, duplicate the overlap group select the locations that you want in the 2 overlaps and make it visible with a global switch.

Put this formula in the Layer>Visibility of the overlap group

$if(gv(change)=1,always,remove)$

in the other overlap group

$if(gv(change)=1,remove,always)$

Thanks a lot Nelson, that should do it

👍😃👌