Boolean expression returning an integer...

macman104

Member
Like the title says, I have a boolean expression and it poops out everytime, and returns an integer. If you run this script, you'll see the output of where the expression is neither true or false (because it's an integer it seems). I'm absolutely stumped. And then when I include the expression in the print statement, it returns false. I'm baffled.

I've also uploaded an isolated map version where instead of file_to_map, it creates the map in the script if you don't want to mess with the external file. Any help figuring this out is appreciated.
 

Attachments

  • BountyTest.ash
    2 KB · Views: 34
  • bounty.txt
    2.8 KB · Views: 46
  • BountyTestIsolatedMap.ash
    5.4 KB · Views: 33

holatuwol

Developer
It turns out that == when comparing values whose underlying representation was an integer (items, integers) was missing an equals sign (= instead of ==)... so rather than comparing the left with the right, it created an integer with the right-hand operand's integer value.  This should be fixed.
 
Top