Author Topic: Help With Chatbot  (Read 985 times)

Cases and if/else statements mean the exact thing to torque, and they compute at the same speed. The only difference is the bracketeering bracketing

Wouldnt with case the bot will be open to answer to anyone?

Wouldnt with case the bot will be open to answer to anyone?
You can put cases inside if statements and vice versa

You can put cases inside if statements and vice versa
I see

You can put cases inside if statements

no


switch$ ( "" )
{
        if ( true )
        {
                case "nothing": quit();
        }
}


not valid

no

if ( true )
{
        case "nothing": quit();
}


not valid
Case statements, or switch statements. You know perfectly well what I mean.

Case statements, or switch statements. You know perfectly well what I mean.

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.

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.
You know perfectly well what I mean.

You can put cases inside if statements

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.

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.
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

Vast intellect?! Where?!