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: 2898     Entry time: 18 Nov 2024     In reply to: 2897
Author: Stefan Ritt 
Topic: Info 
Subject: New sequencer command ODBLOOKUP 
> "value not found" sets "index" to ?

It sets it actually to "not found". Since all variables are stings in the sequencer, you can then do a test like

ODBLOOKUP ..., index
if ($index == "not found")
  ...


> "odb key not found" sets "index" to ?

If the odb key is not found, the sequencer aborts.

> link to documentation?

The documentation is where it always has been: 

https://daq00.triumf.ca/MidasWiki/index.php/Sequencer#Sequencer_Commands

/Stefan
ELOG V3.1.4-2e1708b5