Closed AntDum closed 1 year ago
Revised the condition from ===1 to !==0 to align with the concept that positive values are considered as true, while only 0 is regarded as false.
===1
!==0
Replaced the condition ===1 with !==0 for improved accuracy in evaluating truthiness. Applied this change to the following hooks:
if_
br_if
select
Thanks for the PR! Merged :)
Description
Revised the condition from
===1
to!==0
to align with the concept that positive values are considered as true, while only 0 is regarded as false.Changes Made
Replaced the condition
===1
with!==0
for improved accuracy in evaluating truthiness. Applied this change to the following hooks:if_
br_if
select