ID:146660
 
The organization of the code has been simplified, but it's still the exact same.

Code:
Form
room
Topic(href)
switch(href)
if("descrip")
desc = input("Enter a description for [room.tag]. Please note that you must manually enter carriage returns; \
do not rely on the word-wrap function of this entry field. Otherwise, your \
description will be comprised of one long line of text."
,"Description") as message
if("exit1"||"exit2"||"exit3"||"exit4"||"exit5"||"exit6")
var/exit/X = new()
X.tag = room.tag+"_"+href
if(!room.exits)
room.exits = list()
room.exits += X.tag
var/Form/exit/Fm = new()
Fm.roomtag = room.tag
if(!exits2save)
exits2save = list()
exits2save += X
Fm.exit = X
Fm.DisplayForm()
else return ..()

Form
room
HtmlLayout()
<a href=byond://?#\ref[src]exit1>Edit Exit 1</a> (Put delete command here)<br>
<a href=byond://?#\ref[src]exit2>Edit Exit 2</a> (Put delete command here)<br>
<a href=byond://?#\ref[src]exit3>Edit Exit 3</a> (Put delete command here)<br>
<a href=byond://?#\ref[src]exit4>Edit Exit 4</a> (Put delete command here)<br>
<a href=byond://?#\ref[src]exit5>Edit Exit 5</a> (Put delete command here)<br>
<a href=byond://?#\ref[src]exit6>Edit Exit 6</a> (Put delete command here)<br>


Problem description:
Whenever the user clicks on "exit1" on the form, it functions properly, but if he clicks on "exit2"-"exit6" it goes to the else statement. I can't figure out why this is happenening. If I break the single if() proc into six separate if() procs (all with the EXACT same statement), it magically works.

=$= Big J Money =$=
Multiple values in a switch are comma delimited, not by the or operator.
In response to tenkuu
Okay, thank you. Hm, I see. I guess it's a simplification based on the fact that a switch only allows you to input one value. Weird.

=$=