Quilotoa@lemmy.ca to Showerthoughts@lemmy.world · 10 hours agoThe whole "toilet seat up, toilet seat down" gender debate could be solved by everybody putting the seat and lid down.message-squaremessage-square213fedilinkarrow-up1332arrow-down148
arrow-up1284arrow-down1message-squareThe whole "toilet seat up, toilet seat down" gender debate could be solved by everybody putting the seat and lid down.Quilotoa@lemmy.ca to Showerthoughts@lemmy.world · 10 hours agomessage-square213fedilink
minus-squareAnAverageSnoot@lemmy.calinkfedilinkEnglisharrow-up2·edit-22 hours agoYour variables are already booleans, so you can just write: if wearing_glasses and is_brightly_lit
minus-squarepretzelz@lemmy.worldlinkfedilinkarrow-up1·26 minutes agoAre they though? Maybe they are inputs that haven’t been sanitised but the language has two kinds of equals and is you use the double equals then it tries to coerce it for you. Lol that with would be silly!
Your variables are already booleans, so you can just write:
if wearing_glasses and is_brightly_litAre they though? Maybe they are inputs that haven’t been sanitised but the language has two kinds of equals and is you use the double equals then it tries to coerce it for you. Lol that with would be silly!