sample_model.fsmAsking this question by converting my issue with a simple example. I have a more complex model than this and the values in the global are actually updated through multiple conditions.
In the attached model, I have a global table which have tracked variables that updates automatically. However I want to listen to these changes (wait for the event) and see what was the trigger that fired the event. Based on the location I want to do something. For example do something if it was triggered by row 1 VS do something if it was triggered by row 2.
I am assigning the triggering event by token.Event and can see that token did receive the information. So when I print I get this location.
/Tools/GlobalTables/GlobalTable1>variables/data/Row 1/Col 1
However, how would I check the condition that does that string is equal to "/Tools/GlobalTables/GlobalTable1>variables/data/Row 1/Col 1" OR
"/Tools/GlobalTables/GlobalTable1>variables/data/Row 2/Col 1.
The conditional statement is failing to recognize the location. Even I tried string.include, string.search functions but nothing works. At least if I can pull if the string contains Row 1 OR Row 2, I can do rest of the work but struggling to get that.
I have used token.Event in other models on 3D objects and processflow events and that worked fine. However not working for tracked variable in global table.
Any help will be appreciated.
Thanks!