Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.

Get Started
Asked — Edited

Action If A Variable Changes?

Maybe this is not possible, I'm stuck on finding a method that would allow this to work. I know I can script checking for a specific variable change like this:

Code:


If ($WhatIsForDinner = "ChickenPotPie")
Print("Yummy")
EndIf


But I would like a script to take action anytime a specific variable changes. This would just run all the time looping and looking for a change to the variable in order to take action. Does anyone think that is possible?

Code:


:ChangeDetected
If ($WhatIsForDinner = *Changed?)
DoSomething
EndIf
GOTO(ChangeDetected)

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
#2  
Thank you Alan!

Digging further, I found that awesome feature just a moment ago. I love ARC! :D :D :D