VERY off topic - LiveCode University lesson 1

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
amanteai
Posts: 12
Joined: Tue Aug 20, 2013 3:37 am

VERY off topic - LiveCode University lesson 1

Post by amanteai » Sun Aug 25, 2013 7:47 pm

Has anyone else cracked open LiveCode University yet? I just started lesson 1 and was enlightened that PB&J sandwiches are made by spreading butter on the bread before the pb and jelly. Anyone else grossed out? :lol:

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: VERY off topic - LiveCode University lesson 1

Post by Dixie » Sun Aug 25, 2013 8:01 pm

fortunately with liveCode there is often more than one way to write a script to get the same result.. as in

Code: Select all

command makeSandwich
   put random(2) into whichReciepe
   
   if whichReciepe = 1 then
      spread butter onto slice1
      spread peanutButter onto slice1
      spread jelly onto slice1
      spread butter onto slice2
   else
      spread peanutButter onto slice1
      spread jelly onto slice1
      spread butter onto slice1
      -- don't worry about slice2
   end if
   
end makeSandwich

cavenewt
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 66
Joined: Fri Mar 15, 2013 3:54 pm
Location: Jackson Hole, Wyoming, USA

Re: VERY off topic - LiveCode University lesson 1

Post by cavenewt » Sun Aug 25, 2013 11:19 pm

amanteai wrote:Has anyone else cracked open LiveCode University yet? I just started lesson 1 and was enlightened that PB&J sandwiches are made by spreading butter on the bread before the pb and jelly. Anyone else grossed out? :lol:
Back when I still ate wheat, I would indeed butter it first, but only if the bread was toasted.

Now there's an exercise in if-then statement construction for you.

Locked

Return to “Summer School 2013”