Please make it easier to help you by formatting your code and making it self-contained, e.g., here you don’t say what N1
is; see Please read: make it easier to help you.
From what I see, j
is a String
so I guess N1
contains some strings and then you try to compare it with 1
and 7
. Strings cannot be compared to numbers hence the error.
2 Likes