Project

General

Profile

$emoticons » History » Version 4

Per Amundsen, 02/16/2023 09:37 PM

1 1 Per Amundsen
_Added in 2.7_
2
3
*$emoticons(N|keyword)*
4
5
Returns the Nth emoticon, or the matching emoticon.
6
7
*Parameters*
8
9 4 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| N | The Nth emoticon. |
12
| keyword | The emoticon keyword to match. |
13 1 Per Amundsen
14
*Properties*
15
16 4 Per Amundsen
table(ktable).
17
|*Property*|*Description*|
18
| .file | Returns the emoticon filename. |
19
| .key | Returns the emoticon keyword. |
20 1 Per Amundsen
21
*Example*
22
23
<pre>
24
; Print number of emoticons.
25
//echo -ag $emoticons(0)
26
27
; Print the 5th emoticon.
28 2 Per Amundsen
//echo -ag The 5th emoticon keyword is $emoticons(5)
29 3 Per Amundsen
30
; Check if "Hello" is an emoticon.
31
//echo -ag Hello $iif($emoticons(Hello), is, is not) an emoticon.
32 1 Per Amundsen
</pre>