Hi!! This probably will be a noob question, because I’m new to “coding”, but here is:
I’m trying to make a simple conditional: If hour or weekday is X, the door will be locked, if not, the player can enter.
But everytime i try, with this code below,or with “is”, without " () ", everytime the door appear locked, no matter the $period or $day.
<<if ($period == 0 or 5) or ($day == 0 or 6) >>
<h4>The door is locked</h4>
All the <<elseif>>
and <<else>>
below that work fine, just that part is broken.
I will appreciate if you guys can help me solve that <3
English is not my primary language, sorry for any mistakes
EDIT
ChatGPT solved the issue lol
He gave me this code, and it’s working now. However, I would appreciate it if you could confirm whether this is the most optimized way to write it.
<<if (($period === 0 || $period === 5) || ($day === 0 || $day === 6)) >>
<h4>The door is locked</h4>
<</if>>