Would this work for what I need it to?

Hey all, newbie to the Arduino World here. I’m working on building an automated Liquor Dispenser and I’m wondering if this code will work the way I want it to. My Arduino Uno is in the mail and won’t be here till Friday or so, and I wanted to try to work out as much as possible beforehand, so it’s mostly plug-and-play. It’s pretty simple:

3 buttons to control amount dispensed (single, double, or triple [“1x”, “2x”, and “3x” in the code, respectively])

1 button to act as a “safety switch” so liquor will only dispense when a glass is on the pad (“pad” in the code)

3 LED’s (one for each mode [“1xled”, “2xled”, “3xled” in the code])

A pump to dispense the liquor (“pump” in the code)

An LCD Display to show messages based upon given actions (“lcd” in the code)

Any help would be much appreciated, and I would be glad to elaborate further if need be.

#include <LiquidCrystal.h>
#include <Stepper.h>

int 1xState = 0, 2xState = 0, 3xState = 0, padState = 0;
int 1xledState = 0, 2xledState = 0, 3xledState = 0;
const int steps = 200;
const int 1xled = 0, 2xled = 1, 3xled = 2, pump = 3;
const int 1x = a0, 2x = a1, 3x = a2, pad = a3;
const int rs = 9, en = 8, d4 = 7, d5 = 6, d6 = 5, d7 = 4;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
Stepper pump(steps, 10, 11, 12, 13);

void setup() {
  lcd.begin(16, 2);
  pump.setSpeed(60);
  pinMode (1x, INPUT);
  pinMode (2x, INPUT);
  pinMode (3x, INPUT);
  pinMode (pad, INPUT);
  pinMode (pump, OUTPUT);
  pinMode (1xled, OUTPUT);
  pinMode (2xled, OUTPUT);
  pinMode (3xled, OUTPUT);
}

void loop() {
1xState = analogRead(1x);
2xState = analogRead(2x);
3xState = analogRead(3x);
padState = analogRead(pad);

if(padState == HIGH){
  lcd.setCursor(3,0)
  lcd.print("HOW  MUCH?")
  
} else if (padState == HIGH && 1xState == HIGH) {
  lcd.setCursor(2,0)
  lcd.print("NICE CHOICE.")
  pump.step(1000)
  digitalWrite(1xledState = HIGH)
  delay(5000)
  digitalWrite(1xledState = LOW)
  
} else if (padState == HIGH && 2xState == HIGH) {
  lcd.setCursor(3,0)
  lcd.print("ROUGH DAY?")
  pump.step(2000)
  digitalWrite(2xledState = HIGH)
  delay(10000)
  digitalWrite(2xledState = LOW)
  
} else if (padState == HIGH && 3xState == HIGH) {
  lcd.setCursor(5,0)
  lcd.print("GO BIG")
  lcd.setCursor(2,1)
  lcd.print("OR GO HOME")
  digitalWrite(3xledState = HIGH)
  delay(15000)
  digitalWrite(3xledState = LOW)
  
} else {
  lcd.setCursor(3,0)
  lcd.print("*BAR**WENCH*")
  lcd.setCursor(3,1)
  lcd.print("JACK DANIELS")
}
  
}

}

Use CTRL T to format the sketch.

digitalWrite(1xledState = HIGH)
Look up digitalWrite usage.

Avoid delay()
Study Sate Machine techniques.
http://www.thebox.myzen.co.uk/Tutorial/State_Machine.html

If these are for digital inputs then change:
const int 1x = a0, 2x = a1, 3x = a2, pad = a3;
const byte 1x = 14, 2x = 15, 3x = 16, pad = 17;
Then do digitalReads on them.

Did you do a trial Verify?

Show us a good schematic of your circuit.

Indeed you should make sure the code compiles before posting it here.

I don't see any pump command in the triple section of your code, while it's there in the single and double.