Blockland Forums > Modification Help
Help With Chatbot
Treynolds416:
--- Quote from: Port on June 08, 2012, 11:44:13 PM ---no
if ( true )
{
case "nothing": quit();
}
not valid
--- End quote ---
Case statements, or switch statements. You know perfectly well what I mean.
Port:
--- Quote from: Treynolds416 on June 08, 2012, 11:45:28 PM ---Case statements, or switch statements. You know perfectly well what I mean.
--- End quote ---
No. Switch statements are containers for case statements. Case statements can only be in switch statements. Switch statements can be in case statements, though. No other syntax constructs than case statements can be in switch statements.
Treynolds416:
--- Quote from: Port on June 08, 2012, 11:46:25 PM ---No. Switch statements are containers for case statements. Case statements can only be in switch statements. Switch statements can be in case statements, though. No other syntax constructs than case statements can be in switch statements.
--- End quote ---
--- Quote from: Treynolds416 on June 08, 2012, 11:45:28 PM ---You know perfectly well what I mean.
--- End quote ---
Port:
--- Quote from: Treynolds416 on June 08, 2012, 11:32:54 PM ---You can put cases inside if statements
--- End quote ---
This clearly states that the following syntax construct:
case = "case", whitespace, {whitespace}, ["\""|"\'"], [char_strb, {char_cstr}], ["\""|"\'"], {whitespace}, ":", {whitespace}, lang_contained
Can be placed within the following syntax construct:
if = "if", {whitespace}, "(", {whitespace}, expression, {whitespace}, ")", ("{", lang_contained, "}")|(lang_contained_single)
Which is not true.
Treynolds416:
--- Quote from: Port on June 08, 2012, 11:53:01 PM ---This clearly states that the following syntax construct:
case = "case", whitespace, {whitespace}, ["\""|"\'"], [char_strb, {char_cstr}], ["\""|"\'"], {whitespace}, ":", {whitespace}, lang_contained
Can be placed within the following syntax construct:
if = "if", {whitespace}, "(", {whitespace}, expression, {whitespace}, ")", ("{", lang_contained, "}")|(lang_contained_single)
Which is not true.
--- End quote ---
I'm not sure at all what your problem is or why you are trying to be so specific, I know the words I said were not completely accurate but the meaning is perfectly understandable for a functioning human being. If you are doing this just to flaunt your vast intellect, please stop, because it's only making you look like a richard