Noob help with a random tweet quote generator

I’ve been chipping away at this Frank Zappa Ethernet twitter quote generator that updates every hour. But I have no clue if I’ve formatted it right. It would be appreciated if someone would help me. I actually don’t have an Arduino yet, just programming in anticipation for it. :slight_smile:

#include <SPI.h>
#include <Ethernet.h>
#include <UDP.h>
#include <EthernetDNS.h>
#include <Twitter.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 10, 0, 0, 177 };
Twitter twitter("<<< your token here >>>");
void setup()
  Ethernet.begin(mac, ip);
  Serial.println("connecting ...");

void loop() {
int randNumber;
randNumber = random(10); 
     if (randNumber = 1);
     {"The Muffin Man is located in the Utility Muffin Research Kitchen... #zappa");      
     if (randNumber = 2);
     if (randNumber = 3);"Help, I'm a rock! #zappa");
    if (randNumber = 4);
    {"The White Zone is for loading and unloading #zappa");
    if (randNumber = 5);
    {"This is the Central Scruitinizer... #zappa");
  if (randNumber = 6);
  {"And Joe was wisked away by an evil barbarian with a wrench in his pocket #zappa");
  if (randNumber = 7);
  {"And the dust blows forward and the dust blows back... #beefheart")
  if (randNumber = 8);
  {"In plain view, it's Captain Beefheart! #beefheart")
  if randNumber = 9);"We're Only In It For the Money #zappa")
  if (randNumber = 10);"TV dinner by the pool, I'm so glad I finished school #zappa");
      else {
    Serial.println("connection failed.");


     if (randNumber [glow]=[/glow]= 1);

Thanks! But I'm still getting the following errors

TwitterWIP.cpp: In function 'void loop()':
TwitterWIP:52: error: expected `;' before '}' token
TwitterWIP:56: error: expected `;' before '}' token
TwitterWIP:58: error: expected `(' before 'randNumber'
TwitterWIP:61: error: expected `;' before '{' token
if (randNumber = 1)[glow];[/glow]


blows back... #beefheart")[glow]  [/glow]

There's a big clue in the error message.

Consistent indentation helps spot mismatched braces.

You may want to read about the switch/case construct too.

BTW sp. "whisked" ;)