Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Copied from IRC: If comparing number and variable #267

@ghost

Description

[18:32] <[Zeus]> there seems to be a really weird bug with moddamage
[18:33] <[Zeus]> http://pastebin.com/R438FPR9
[18:33] <[Zeus]> A works, but B doesn't
[18:33] <[Zeus]> with the same input and scenario
[18:33] <[Zeus]> I HAVE to make a seperate variable or it fails
[18:34] <[Zeus]> and following IFs do work
[18:34] <[Zeus]> so if I just have the number literal comparing against the variable
[18:35] <[Zeus]> that bug wasted me two full hours

Full code: http://pastebin.com/XV5i3bM8

The reason I wrote it in such an odd way is not knowing how to use your switch, or how to iterate over tag names. Or much else about MD for that matter. I know enough to hack stuff together, but none of those fancy tricks like for loops or switches or similar things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions