Add if block usage to procedure return blocks.

29 views
Skip to first unread message

Seth Worth

unread,
Oct 27, 2015, 3:23:52 PM10/27/15
to MIT App Inventor Forum
Why can't I do this in app inventor?

if condition 
     return value1
else if condition2
      return value 2
else
     return value 3
end if

Italo

unread,
Oct 27, 2015, 3:32:11 PM10/27/15
to MIT App Inventor Forum


Scott Ferguson

unread,
Oct 28, 2015, 1:18:09 AM10/28/15
to mitappinv...@googlegroups.com

@Italo, I think he is referring to the if-then-else block that returns a result:


You can attach multiple blocks like this togther:


---

sf

Italo

unread,
Oct 28, 2015, 2:56:01 AM10/28/15
to MIT App Inventor Forum
Oh, OK. Yes, that makes more sense. Thanks Scott.
Reply all
Reply to author
Forward
0 new messages