Jump to content

[Suggestion] foreach command


Zell

Recommended Posts


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  412
  • Reputation:   266
  • Joined:  04/25/12
  • Last Seen:  

It's not already time to implement a foreach?

for( .@i = 0; .@i < getarraysize(.@array); .@i++)
{
   dispbotom "Val is " + .@array[.@i];
}


We could use:

foreach( .@val : .@array )
{
   dispbottom "Val is " + .@val;
}

I could try to implement this but the script parser it's a bit confuse to me and I think someone could implement this better than me

Edited by Zell
  • Upvote 6
  • Like 1
Link to comment
Share on other sites

  • 4 years later...

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.02
  • Content Count:  478
  • Reputation:   67
  • Joined:  08/28/12
  • Last Seen:  

A bit late, but im up for this too~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  44
  • Reputation:   8
  • Joined:  03/17/21
  • Last Seen:  

On 7/3/2024 at 4:38 PM, WhiteEagle said:

A bit late, but im up for this too~

Why not use inarray();

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Forum Moderator
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  919
  • Reputation:   122
  • Joined:  05/23/12
  • Last Seen:  

I can really give +1 for it. It should be rly great!

 

Rynbef~

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  74
  • Reputation:   10
  • Joined:  12/16/11
  • Last Seen:  

Also would be awesome to learn how to do that, if some one can make a video doing it and explaining xd.

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
Reply to this topic...

×   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...