How to use OR condition in a JavaScript IF statement? November 14, 2022 by Tarik Simply use the logical “OR” operator, that is ||. if (A || B)