Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  13 Nov 2024, Stefan Ritt, Info, New sequencer command ODBLOOKUP 
    Reply  15 Nov 2024, Konstantin Olchanski, Info, New sequencer command ODBLOOKUP 
       Reply  18 Nov 2024, Stefan Ritt, Info, New sequencer command ODBLOOKUP 
Message ID: 2897     Entry time: 15 Nov 2024     In reply to: 2892     Reply to this: 2898
Author: Konstantin Olchanski 
Topic: Info 
Subject: New sequencer command ODBLOOKUP 
> A new sequencer command "ODBLOOKUP" has been implemented, which does a lookup of a string in a string 
> array in the ODB given by a path and returns its index as a number. If we have for example an array
> 
> /Examples/Names
>    [0] Hello
>    [1] Test
>    [2] Other
> 
> and do a
>  
> ODBLOOKUP "/Examples/Names", "Test", index
> 
> we get a index equal 1.
> 

"value not found" sets "index" to ?
"odb key not found" sets "index" to ?
link to documentation?

K.O.
ELOG V3.1.4-2e1708b5