Seems like this is a Lua thing and not MQ, but here's the observations.
Using ${Me.Invis} and ${Me.Invis[]} seem to work as usual for macros. For example, if I have standard invis all of the following report TRUE. When I drop invis they all return FALSE.
${Me.Invis}, ${Me.Invis[0]}, ${Me.Invis[1]}, ${Me.Invis[ANY]}, ${Me.Invis[NORMAL]}
Using the Lua form ('mq.TLO.Me.Invis()') I get slightly different behavior. Using the following code:
I get the following results when invised:
And the following when not invised:
The result values are seemingly correct and as expected except for the case. But when I use the result in a Lua script, the 'true' and 'false' results work as expected, but the uppercase values don't seem to equate. The following code will not work to detect normal invis:
What am I doing wrong (just dipping toe into Lua)?
Using ${Me.Invis} and ${Me.Invis[]} seem to work as usual for macros. For example, if I have standard invis all of the following report TRUE. When I drop invis they all return FALSE.
${Me.Invis}, ${Me.Invis[0]}, ${Me.Invis[1]}, ${Me.Invis[ANY]}, ${Me.Invis[NORMAL]}
Using the Lua form ('mq.TLO.Me.Invis()') I get slightly different behavior. Using the following code:
Code:
print(mq.TLO.Me.Invis())
print(mq.TLO.Me.Invis(0))
print(mq.TLO.Me.Invis(1))
print(mq.TLO.Me.Invis(2))
I get the following results when invised:
Code:
true
TRUE
TRUE
FALSE
And the following when not invised:
Code:
false
FALSE
FALSE
FALSE
The result values are seemingly correct and as expected except for the case. But when I use the result in a Lua script, the 'true' and 'false' results work as expected, but the uppercase values don't seem to equate. The following code will not work to detect normal invis:
Code:
local invis = mq.TLO.Me.Invis(1)
if invis then
What am I doing wrong (just dipping toe into Lua)?

