Results 1 to 3 of 3

Thread: lua: use variable where string is required

  1. #1
    Join Date
    Apr 2003
    Posts
    111

    Default lua: use variable where string is required

    this is more or less a lua question.

    i am trigger an event
    Code:
    gir.TriggerEvent("1On", 2000, 0)
    however i would like "1On" to be built from the variable RawZoneNumber and the constant string "On" if i were to print this it would be something like (RawZoneNumber,"On")

    anyway to do this in the trigger event? if not what are the options?

  2. #2
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,125

    Default

    Try
    Code:
    gir.TriggerEvent(RawZoneNumber.."On", 2000, 0)
    Rick

    Girder 6.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote - BlueIris DVR
    Girder 6 Plugins - Elk M1/EZ8, Pushover Connector and more on the way.


    Visit My Showcase

  3. #3
    Join Date
    Apr 2003
    Posts
    111

    Default

    thats great. can i use that for calling tables also?

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •