switch(input(S.welcometxt, S.shopname, "Exit") in list(S.item1, S.item2, S.item3, S.item4, S.item5, S.item6, S.item7, S.item8, S.item9, S.item10, "Exit"))
if("Exit")
return
if(S.item1)
if(usr.wealth < S.item1p)
alert("You don't have enough money!")
else
usr.wealth -= S.item1p
alert("Thank you for shopping with us.Your item will now spawn in front of you.")
spawnitem(S.item1id, usr.x, usr.y, usr.z)
Problem description: I keep getting expected expression from this code(specifaclly in the if statements) Is there anyway to do this without long branching if statements? (I am trying to dynamically save load shops in savefiles, btw.
Also where does the compiler point out the error ?