mIRC Home    About    Download    Register    News    Help

Print Thread
#62556 01/12/03 07:56 PM
Joined: Apr 2003
Posts: 414
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
$result - Stores the number value returned to a calling routine by the /return command.

It's not at all that..
That work only then..
Alias Gu {
return lol
}
Alias Gugu {
gu
echo $result
}

But not work here..
Alias Gu {
return lol
}
Alias Gugu {
if ($gu == lol) echo $result
}
Add support of the $ aliases/standart commands what have return..
Ex...
Use that:
Alias Some {
;%Compile = The next day date..
var %Compile = $asctime(yyyy-m-) $+ $calc($asctime(d) + 1) 06:00
if ($ctime(%Compile) != $null) {
return $result
}
}
Instead of:
Alias Some {
;%Compile = The next day date..
var %Compile = $asctime(yyyy-m-) $+ $calc($asctime(d) + 1) 06:00
var %Rez = $ctime(%Compile)
if (%Rez != $null) {
return %Rez
}
}


mIRC Chm Help 6.16.0.3 Full Anchored!
#62557 01/12/03 10:20 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
$ifmatch is better applicable in both examples, though.


* cold edits his posts 24/7
#62558 02/12/03 11:50 AM
Joined: Apr 2003
Posts: 414
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
You right smile Thank you smile I remeber the $ifmatch Identifiers..
But in some situation that not help a lot the coder..


mIRC Chm Help 6.16.0.3 Full Anchored!
#62559 02/12/03 10:52 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
I agree though, there are some moments where I'd like to use $result when it's not filled. But maybe this is intended behaviour, I don't know.


* cold edits his posts 24/7

Link Copied to Clipboard