table = table or {}
if table["%1"] and not table["%2"] then
EnableTimer("timer",true)
end
The above format will work if I try to send a command rather than enable something...but how can I use a table match to enable another timer or trigger?
This forum is a read-only archive of the Gammon Software forum (2000–2026). No new posts can be made. Search the archive.
Posted by Walton on Fri 19 Jun 2009 09:21 PM — 7 posts, 24,053 views.
if table["%2"] and not table["%1"] then
EnableTimer("timer",true)
end
print ("%%1 is '%1', %%2 is '%2'")
if table["%2"] and not table["%1"] then
print ("enabling timer")
EnableTimer("timer",true)
else
print ("test failed")
end