Introduction

Ruby has four types of logical operators: && / || / and / or, each with a different precedence.

&& / || have higher precedence as operators, with && taking precedence over ||.

and / or have low operator precedence, and there is no priority between them. In other words, they are evaluated from left to right.

These are sometimes described as being "also usable for flow control," but that statement is incorrect.