Button Toggle (Based on Variable)

Hello,

Could someone lead me in the right direction on where I would get started to create these (if possible)? For example, being able to detect whether I am in details or Thumbnails mode, then using the button switch to the other mode.

Thanks.

@if:set VIEW=Details 
@confirm Details mode!
@if:set VIEW=Thumbnails
@confirm Thumbnails mode!
@if:else
@confirm Another mode!
1 Like

Thanks, for your help.