%EVENT_PAR

Discussion in 'Scripting Workshop' started by Lovechld2000, May 19, 2019.

  1. Lovechld2000

    Lovechld2000 NI Product Owner

    Messages:
    234
    It' not in the manual and wont message out but some NI scripts make use of it like below. Any idea what EVENT_PAR[0] is ?

    Code:
        if (%EVENT_PAR[0] = 3)
            ignore_event($EVENT_ID)
            exit
        end if
     
  2. EvilDragon

    EvilDragon Moderator Moderator

    Messages:
    14,609
    It's an array of all 4 custom event pars, 0 to 3.
     
  3. Lovechld2000

    Lovechld2000 NI Product Owner

    Messages:
    234
    cool. so it's the same as this in the manual

    is the array set using bitwise operators?
     
    Last edited: May 20, 2019
  4. EvilDragon

    EvilDragon Moderator Moderator

    Messages:
    14,609
    It's not set using bitwise operators. It's just, if you want to read $EVENT_PAR_2, you can also reference it by using &EVENT_PAR[2].
     
  5. Lovechld2000

    Lovechld2000 NI Product Owner

    Messages:
    234
    aah ok. thanks as always