tui.data.has
tui.data.has NAME ID
Succeeds when a row with that id exists (the key for a keyed dataset, else the 0-based index).
Example
tui.data.has hosts web1 || tui.data.append hosts "web1|up"
D.A.B.Tv0.0.33
Tutorial
API
DABT Tools ↗
GitHub ↗
tui.data.hastui.data.has NAME ID
Succeeds when a row with that id exists (the key for a keyed dataset, else the 0-based index).
Example
tui.data.has hosts web1 || tui.data.append hosts "web1|up"