SyntaxFix
Write A Post
Hire A Developer
Questions
You cannot treat == or || as chars, since they are not chars, but a sequence of chars.
==
||
You could make your switch...case work on strings instead.