Asked
— Edited

Can anyone give me info on how to program an If-Then sequence? Ex. If the robot sees a red ball, it will stop, if it sees a green one, it will go forward. Also a screenshot of the programming would be helpful. Thanks!
First you need to make sure you have the camera control set up for colour detection, this will give ARC the global variable called $CameraObjectColor
Then your script would need the following IF statement
Code:
If ElseIf Else Got & Return
An Introduction To Scripting
I've also posted a few other scripts which use IFs, my Ping Roam has a lot of IF statements. As do most of my files on the EZ-Cloud
1) Start ARC
2) Press OPEN file the FILE menu
3) Press the EXAMPLES button
You will now see sub directories for SCRIPT examples and FUNCTION examples