Back to Help

Use Lookup Tables

Use table-driven selection rules instead of hardcoding every formula result.

Logic & BehaviorintermediateReference guide

What this is

Lookup tables store structured rows of data that formulas can query.

They allow logic to select values based on inputs using exact matches or range-based matching.

Instead of hardcoding rules, you define behavior using data.

This is commonly used for engineering selections like sizes, ratings, and standard values.

Why lookup tables matter

Lookup tables separate data from logic.

One table can drive many variables and many block instances.

  • Easier to maintain
  • Easier to expand
  • Consistent across all uses

Instead of writing large conditional formulas, you define a table and let the system select the correct value.

Visual: Lookup table structure

This is what a lookup table looks like in LogiDraft:

Lookup table editor in LogiDraft
Lookup table editor - structured rows and columns of data used by formulas to select values based on inputs.

Lookup tables in parametric electrical CAD

Lookup tables are one part of the larger parametric flow: inputs resolve through formulas and table data, then drawing geometry and outputs read from the resolved result.

Where it is

  • Definition Tab -> Tables tab: create and edit tables
  • Table editor: define columns, rows, and values directly
  • Formula editor: use LUT_EXACT and LUT_RANGE to query tables
  • CSV import/export: load data from external sources or export for editing

What you can do

  • Create tables with named columns and rows
  • Edit table data directly (add/remove rows, edit values, fill and adjust data)
  • Define engineering datasets like sizes, ratings, and options
  • Import table data from CSV files
  • Export tables to CSV for external editing or reuse
  • Use LUT_EXACT for keyed lookups (exact match)
  • Use LUT_RANGE for range-based selection (floor/ceiling behavior)

Try it now

Open the Control Power Panel and inspect how formulas use lookup tables to select values like transformer sizing or component ratings.

What happens

  • A formula references a table by name
  • Input values determine which row matches
  • The matching row returns a value from a selected column
  • That value becomes the variable result
  • The variable drives geometry, states, and outputs

Key idea

Lookup tables turn data into behavior. Formulas do not define every case - they select from structured data.

Docs

How lookup values resolve inside block logic.

Reference

Exact lookup function syntax.