cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
jc4d
Expert

Access values by their indexes

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 Solution

Accepted Solutions
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

Go to post

1 Reply 1
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

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!