#368

Discarded

Comparison cannot match RGB code using capital letters

Reported by Divided By zer0 on OCTGN · 13/04/2011 23:21:12

Assigned to:
jods
Priority:
Normal
Status:
Discarded
Category:
Game scripts
Version:
0.9.*
Issue type:
Bug

If your have a variable holding a colour code with capital letters, and you compare it with an if statement, then it will never match.

For example in this scenario:

TestColor = “#CC6633”

def colortest(card)
card.highlight = TestColor
if card.highlight = TestColor:

The if statement will always be false.

Changing the colour code to cc6633 makes it work as expected.

Attachments

No attachment has been uploaded, yet.


Loading comments...