Top

$ORDTOK


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Mar 08, 2008
Last Updated  Mar 08, 2008
Tags  identifier  number  numeric  order  sort  token 
  Bookmark and Share

Introduction

Usage: $ordtok(TOKEN,C,?)

Will return entered numbers as ords (1.4.2 = 1st.2nd.4th) and as you can see, will sort them in reverse or put them in order (if you used $ordtok(4.1,46,nr) - it would return it in reverse)

Made by me.

Grab the Code

Comments

  (3)  RSS
^Neptune
Comments: 319
 
mIRC Snippet:  $ORDTOK
Posted on Aug 25, 2008 3:36 pm
I have.. no idea how to use this or what it could be useful in
Zmodem
Comments: 220
 
mIRC Snippet:  $ORDTOK
Posted on Aug 25, 2008 3:47 pm
Edit: Never-mind, I say go with it...lol!
Scakk
Comments: 237
 
mIRC Snippet:  $ORDTOK
Posted on Aug 25, 2008 3:49 pm
The way it looks to is as follows.

His example: $ordtok(4.1,46,nr)

The number 4 and 1 will be given the proper $ord after them and in reverse order.

It will give: 4th 1st

-----------------

The problem I see is that if one of the items in the group ends with a non-number it is just listed as it is. Perhaps have it either remove it or error out.

If you use: $ordtok(4.1,46)

It will give: 1st 4th


Please Register or Login to start posting comments.
Bottom