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

Access values by their indexes

jc4d
Advocate

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

Solution
Yves
Enthusiast

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
Enthusiast

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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!