mIRC Home    About    Download    Register    News    Help

Print Thread
#28238 05/06/03 05:51 AM
Joined: Mar 2003
Posts: 36
B
bugx Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 36
I have this Var :

%rola d:\mp3\unas\[Alien Ant Farm] Smooth Criminal.mp3

I put in Status : //echo -a $exists(%rola)
and return me : $true

I put in Status : //echo -a $shortfn(%rola)
and return me : d:\mp3\unas\_ALIEN~1.MP3

All is ok, but if a try to use in an Alias it not work

I try :

echo -s $exsists(%rola)
echo -s $exists($shortfn(%rola))
echo -s $exists(d:\mp3\unas\_ALIEN~1.MP3)
echo -s $exists(d:\mp3\unas\[Alien Ant Farm] Smooth Criminal.mp3)
echo -s $exists($shortfn(d:\mp3\unas\[Alien Ant Farm] Smooth Criminal.mp3))

(and without echo because i need it in a "if")

And all say : * /echo: insufficient parameters

I'm wrong ? Or is a bug ?

I need to catch the $true or $fale in $exists (Wrong answer "put quotes")

#28239 05/06/03 05:59 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
you spelt the first exists alias wrong.. could that be it? >:D Also, does the same problem exists with $isFile() ?


-KingTomato
#28240 05/06/03 06:07 AM
Joined: Mar 2003
Posts: 36
B
bugx Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 36
Sorry i forget that identifier...

Ok, now, is the same

In Status directly with "//echo -a $isfile(bla...bla)" works fine, but in Alias not work

$exists $isfile $shortfn not work in Alias

#28241 06/06/03 03:12 AM
Joined: Mar 2003
Posts: 36
B
bugx Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 36
Sorry for the space used in my cuestion

I found a result : [ ]

echo -s $exists( [ %rola ] )

If an alias is : check { echo -s $exists(%rola) }
it works, but if i use 4 lines after, not works :
check {
line1
line2
line3
line4
echo -s $exists(%rola)
}

#28242 07/06/03 12:38 AM
Joined: Jun 2003
Posts: 3
M
Self-satisified door
Offline
Self-satisified door
M
Joined: Jun 2003
Posts: 3
you must use "root/filename"

for example:
aaa {
var %file = $+(",C:\some dir\somefile.ext,")
echo -a aaaa
echo -a aaaa
echo -a aaaa
echo -a aaaa
echo -a $isfile(%file)
}

it works very well, in alias, scripts, events....


Link Copied to Clipboard