How do you create a conditional action with a data sent from arduino?

See
http://www.appinventor.org/bookChapters/chapter18.pdf
from
http://www.appinventor.org/book2
from