
Hello, I am messing with TokenMod API and am trying to build a Macro which, through a single button click, toggles a token marker on/off. I think I need to use the boolean logic function of TokenMod, but I'm not sure I understand completely how to apply it after reading through "!token-mod <-help I have the following code to place a marker on a selected token: !token -mod { {
- -set statusmarkers |FinalGrappled
}} and the following code to remove the marker from the selected token. !token -mod { {
- -set statusmarkers |-FinalGrappled
}} But what do I need to do to combine these into a single macro button which checks to see if the token has an applied marker and either applies it or removes it? Thank you