Tryin to write a simple merchant checking macro, and having issues with numeric comparisons.
to test the comparison, I'm using the folowing line, after clicking on a Feather in an open merchant window.
Code: Select all
/if (${SelectedItem.ID}==${Merchant.Item[=Feather].ID}) { /echo Yes }
Code: Select all
/echo (${SelectedItem.ID}==${Merchant.Item[=Feather].ID}) { /echo Yes }
Code: Select all
(13094==13094) {//echo Yes}
in the MQ window, which is what I'd expect to see. So, theoretically, the two IDs are equivalent. Both types come down to ints, according to the posts, if I'm reading it right.
Can anyone shed some light on why a numeric comparison isn't working?
Thanks!

