• ryannathans@aussie.zone
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    23 hours ago

    Isn’t the logic inverted? I think you want a == 0 on each of those conditions

    You wouldn’t even need the first if you removed the space

    • neukenindekeuken@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      10 hours ago

      Correct, noticed the same thing. Should have been a bang in front of each of the terms, your modulus of any of those will return a 0 when hit, which will convert to false and fail each of those conditions.

      This solution will do the opposite of what was intended unless the if conditions are inverted. Then it works flawlessly and the %15 is indeed a clever solution.