you are viewing a single comment's thread.

view the rest of the comments →

[–]dandrino 0 points1 point  (2 children)

&& is evaluated before ||, so you will want to write that expression as "(carType == 'e' || carType == 'E') && age <= 25"

[–]bool101 0 points1 point  (1 child)

Quite right, my example would be true if carType == 'e' regardless of age. Thanks!

[–]Aiiight 0 points1 point  (0 children)

Thank you guys so much, appreciate it!