loading
 
compairing variables
Fraser from United Kingdom  [5 posts]
5 years
How would i compair the the COLOR_SAMPLE_NEAREST Variable from the sample color function to a preset variable in an if command?
Anonymous 5 years
Fraser,

It will be an array of strings. Use

COLOR_SAMPLE_NEAREST:0

in the If Statement module to request the first (0) element of that array.

You will need to download the latest RR for this to work as we updated the If statement to accept this notation (standard in many other modules).

See attached for example.

STeven.
program.robo
Fraser from United Kingdom  [5 posts] 5 years
thanks for the examl thats helps a lot on a side note . under the currnt trial version roborealm crashes every time i try to use the serial or arduino modules. running windows 7 32 bit

any ideas?
Anonymous 5 years
Fraser,

Yes, the changes we made to fix the variable comparison caused a serial creation issue. The fix to that was just uploaded. Can you download again and give those modules a try?

Thanks,
STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index