Jump to content
  • 0

Question about Arrays, and for() command.


azzzura

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  06/12/13
  • Last Seen:  

Hi, my english is bad. But try please to understand me.

 

I have array with numbers for example:

 

setarray @some_numbers[0],1,2,3,4,5,6,7,8,9,10,11,12,13,14,15;

 

I have next array with random numbers

 

setarray @another_array_random[0],53,1,65,13,63,6,17,54,73,2,78,9

 

I need to get 3rd array from this two arrays, what will looks like that:

 

@last_array[0],1,13,6,2;

 

 

Show me a way how can i do it in scripts? 

I think you get me.

 

Sure, i know, i must need to use for () {}; but i tryed alot of time, and i thin, without algorytm, i cannot do anything. Help me by ready way.

 

 

 

 

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  06/12/13
  • Last Seen:  

yes, like that.

wew, so easy. I am dumb!

Edited by azzzura
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...