Hello i seem to have trouble with comparing two chars
e.g.
This works if
but when i try if
it always returns false.
Heres the actual line of code-
The problem is that even if var_name is equal to one of those values it loops infinitley.
Any help in this matter is greatly appreciated
e.g.
This works if
Code:
(char == 'z')
Code:
(char != 'z')
Heres the actual line of code-
Code:
while (var_name !=('a' || 'b' || 'c' || 'd' || 'e' || 'f'') ) {
code goes here
}
Any help in this matter is greatly appreciated
Comment