Good morning MarcusBe, š¤ļø (It's 07:44 is the midwestern U.S.)
It sounds like you need to use a 'propertycheckpoint' and base your If/Then off of the result. This should work provided the object identification isn't based on this property as well.
Property Checkpoints
https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/property/index.html
... If you find my posts helpful drop me a like! š Be sure to mark or post the solution to help others out and/or to credit the one who helped you. š