cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The 2025 Technology Preview Program is now live. Join today!

GDL
About building parametric objects with GDL.
SOLVED!

Access values by their indexes

jc4d
Expert

Hello,

 

Let's say that on the parameter tab I have this:

 

VALUES "list" "door", "windows", "floors"

 

which shows like this:

jc4d_0-1663754610840.png

 

Now, what I would like to know if there is a way to access to those values by their index, and not by writting the value's names, eg:

 

if list = index_value_here then
	do something
endif

 

 

Hope it makes sense.

Juan

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Yves
Expert

Hi,

 

With VALUES{2}

 

VALUES{2}"list" 1,"door",2,"windows", 3,"floors"

 

Capture d’écran.png

 

Yves Houssier
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13

View solution in original post

1 REPLY 1
Solution
Yves
Expert

Hi,

 

With VALUES{2}

 

VALUES{2}"list" 1,"door",2,"windows", 3,"floors"

 

Capture d’écran.png

 

Yves Houssier
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13