When you say value of 'state' variable, do you mean the value of "loginClicked" in this sample:
MobileCore.trackAction("loginClicked", additionalContextData);
Basically the Mobile App version of "custom link" value?
You can get this in processing rules using the "a.action" item, unfortunately, Adobe always adds the "AMACTION:" prefix to the action names, but I think that this happens after processing rules, so you should be able to get the value as sent into your dimension.
![Jennifer_Dungan_0-1689347488360.png Jennifer_Dungan_0-1689347488360.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/60153iCC9D81F568E8B53B/image-size/medium?v=v2&px=400)
You can use it in conditions as well:
![Jennifer_Dungan_1-1689347548631.png Jennifer_Dungan_1-1689347548631.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/60154i03D405F479770F57/image-size/medium?v=v2&px=400)