# How to get number this type 1, 11, 21, 31, 41

How To get :

Global list is :
रीजनिंग प्रश्नोत्तरी सेट - 1
रीजनिंग प्रश्नोत्तरी सेट - 2
रीजनिंग प्रश्नोत्तरी सेट - 3
रीजनिंग प्रश्नोत्तरी सेट - 4
रीजनिंग प्रश्नोत्तरी सेट - 5
रीजनिंग प्रश्नोत्तरी सेट - 6

I Want :
If Click list index 1, Then get 1,
If Click list index 2, Then get 11,
If Click list index 3, Then get 21,
If Click list index 4, Then get 31,
If Click list index 5, Then get 41,
If Click list index 6, Then get 51,
If Click list index 7, Then get 61,
Continue …

Well, you are having question as well as answer. Just convert your words(what you have given above) into as a logic using if block.

Join (Index-1)+ “1”…

Or Sum… Define what you really want…

1 Like

@Still-learning But is not fix index length of list

Create two list, one with 1,2,3,4, and another one with 1,21,31…

With proper logic you can get it.

Still your query is not clear. Get 1,11,21,31… what is it, where does it come from? No proper information is there.

Was both of them are list?? Etc.etc

@Still-learning Suppose that length of list is random
for Example

length of list is 10
or
length of list is 50
or
length of list is 100

Then how it work with if then block

If possible show us, what you have tried so for. So we can understand it more clear. Sorry still I have no completw idea about your query

I want to say That & I want

If Click list index 1 then get 1,
If Click list index 2 then get 11,
If Click list index 3 then get 21,

Continue … Index +1 Then Get +1 values (1, 11, 21, 31, 41, …)

Try something like this. Create prefixes with a procedure according to lenght of list and then …

IF index = 129 , the Result Will be ?

@Rogerio_Rios Then Get 121

1 Like

@Ankit_Jangid , till 9 we can design logic. Ok, suppose if the list index is 10 mean as per the logic we designed and answer become 91, Isn’t What you want??

1 Like

And 120…121 122 123 124 …129 => 121 ?

Try like this
If the list index is not =1
Then (list index -1)*10+1

1 Like

i got solution

So you have designed just like what I have suggested … Ok good

You should use if block just like what I suggest. If not, if the list index is 1 mean you will get error or zero

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.