pyrextamer·10 ปีที่แล้ว·discussWhat if the order depended on the check condition?`if (null == variable) or if (false == variable)` reads well that you are checking for null/false.`if (variable != null) or if (variable != false)` reads well that you want non-null/false conditions.
`if (null == variable) or if (false == variable)` reads well that you are checking for null/false.
`if (variable != null) or if (variable != false)` reads well that you want non-null/false conditions.