VERY off topic - LiveCode University lesson 1
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
VERY off topic - LiveCode University lesson 1
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?
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: VERY off topic - LiveCode University lesson 1
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
-
- 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
Back when I still ate wheat, I would indeed butter it first, but only if the bread was toasted.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?
Now there's an exercise in if-then statement construction for you.