Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
The Nth word from a variable.
Forums
Active Threads
Search
Who's Online
Help
Print Thread
The Nth word from a variable.
#
124099
02/07/05
01:02 PM
Joined:
Mar 2003
Posts: 48
F
flup
OP
Ameglian cow
OP
flup
Ameglian cow
F
Joined:
Mar 2003
Posts: 48
Hi all,
I have some variables wich are like this:
%sl [ $+ [ %slid ] ] word1 word2
slid is just a single letter, but now I want to grab the 1st word
from the variable, how to I do this? I tried gettok, eval etc but
they don't seem to work.
tia
Copy Link to Clipboard
Re: The Nth word from a variable.
#
124100
02/07/05
01:48 PM
Joined:
Mar 2003
Posts: 48
F
flup
OP
Ameglian cow
OP
flup
Ameglian cow
F
Joined:
Mar 2003
Posts: 48
$gettok(%var,Nth)
nvm works now
Copy Link to Clipboard
Re: The Nth word from a variable.
#
124101
02/07/05
10:34 PM
Joined:
Sep 2003
Posts: 4,230
D
DaveC
Hoopy frood
DaveC
Hoopy frood
D
Joined:
Sep 2003
Posts: 4,230
If you fix your problem you should show the correct solution!
set %sl [ $+ [ %slid ] ] word1 word2
echo -a First word is $gettok(%sl [ $+ [ %slid ] ],1
,32
)
Copy Link to Clipboard
Re: The Nth word from a variable.
#
124102
03/07/05
08:54 AM
Joined:
Mar 2003
Posts: 48
F
flup
OP
Ameglian cow
OP
flup
Ameglian cow
F
Joined:
Mar 2003
Posts: 48
yeah but got that already :-))
Copy Link to Clipboard
Re: The Nth word from a variable.
#
124103
03/07/05
09:02 AM
Joined:
Sep 2003
Posts: 4,230
D
DaveC
Hoopy frood
DaveC
Hoopy frood
D
Joined:
Sep 2003
Posts: 4,230
as i said you answered incorrectly, others might read this for help, and believe that was the answer.
//echo -a $gettok(%var,Nth)
* Too few parameters: $gettok
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage