Project

General

Profile

$alias » History » Version 3

Per Amundsen, 02/16/2023 05:17 PM

1 1 Per Amundsen
_Added in 1.9.4_
2
3
*$alias(N/filename)*
4
5
Returns the filename for the Nth loaded alias file or if you specify a filename, it returns [[$null]] if the file is not loaded.
6
7
*Parameters*
8
9 3 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| N/filename | Nth alias or alias filename. |
12 1 Per Amundsen
13
*Example*
14
15
<pre>
16 2 Per Amundsen
; Print number of alias files.
17 1 Per Amundsen
//echo -ag $alias(0)
18
19 2 Per Amundsen
; Print first alias file.
20 1 Per Amundsen
//echo -ag $alias(1)
21
22 2 Per Amundsen
; Check if aliases.ini is loaded.
23
//echo -ag aliases.ini is $iif($alias(aliases.ini),loaded, not loaded)
24 1 Per Amundsen
</pre>