$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 |
|
|
Introduction
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.
mIRC Snippet:
$ORDTOK
Posted on Aug 25, 2008 3:49 pm
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
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






