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

Copied from IRC: If comparing number and variable #267

Open
ghost opened this issue Nov 17, 2014 · 1 comment
Open

Copied from IRC: If comparing number and variable #267

ghost opened this issue Nov 17, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 17, 2014

[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.

@coaster3000
Copy link
Contributor

Is this issue still existing within the latest releases?

Is this issue also present in my forked unofficial releases?
The releases on my fork are there because the build server is out of service...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant