BookmarkSubscribe
Choose Language Hide Translation Bar
memoman
Community Trekker

Assigning values to a list using variable pointers

Hello,

I am trying to create a pair of indexes using variables. The below code gives me following output but I want {5, 42} as my output. How can I do this? I am not sure what my error is?

Thank you,

Memo

Input:

selected_FROM_column = 5;

selected_TO_column = 42;

pair_value = {selected_FROM_column, selected_TO_column};

Output:

{selected_FROM_column, selected_TO_column}

0 Kudos
1 REPLY 1
pmroz
Super User

Re: Assigning values to a list using variable pointers

selected_FROM_column = 5;

selected_TO_column = 42;

pair_value = eval list({selected_FROM_column, selected_TO_column});

0 Kudos