I'm in ur loop, iterating ur variable

From Linux.com how to write lolcode:

To declare a variable in LOLCODE, use the I HAS A statement, like so:

I HAS A CHEEZBURGER

Here, we’re declaring CHEEZBURGER as a variable. Let’s take a look at a short script that will iterate CHEEZBURGER and print out its value:

HAI
I HAS A CHEEZBURGER ITZ 1

IM IN YR LOOP
  VISIBLE “I has dis many: ” N CHEEZBURGER
  IZ CHEEZBURGER BIGGER THAN 11 O RLY?
    YA RLY
      GTFO
    NO WAI
      UP CHEEZBURGER!!1
  KTHX
KTHX

KTHXBYE

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • FriendFeed
  • LinkedIn
  • Posterous
  • Reddit
  • Slashdot
  • Tumblr
  • Twitter

1 Response to “I'm in ur loop, iterating ur variable”


Leave a Reply

Additional comments powered by BackType