Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Table lookup

$
0
0
How would I go about extracting data from a table in a text file instead of using many If statements?

Right now I have a lot of If statements like so:

[ autoit ]      
If $SKU = "N1234" Then $Model = "Black" $Version = "117"

It's not very flexible and I'd rather add the data to a table in a text file and not hard code it into the program.

I want to be able to search the table for a string in the SKU column and store the values in a variable from the other columns in the row.

If A exists in SKU column, I want to store B and C in a variable that can be called.

SKU MODEL VERSION
A    B    C
X    Y    Z

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>