Scripting Operators » History » Version 28
Per Amundsen, 10/22/2015 04:13 PM
1 | 1 | Per Amundsen | h1. Scripting Operators |
---|---|---|---|
2 | |||
3 | <pre> |
||
4 | isignore |
||
5 | 9 | Per Amundsen | isurl |
6 | 3 | Per Amundsen | !ismatch |
7 | !isignore |
||
8 | !isurl |
||
9 | 9 | Per Amundsen | </pre> |
10 | 1 | Per Amundsen | |
11 | 10 | Per Amundsen | h2. Math Comparison Operators |
12 | 13 | Per Amundsen | |
13 | 10 | Per Amundsen | |_.Syntax |_.Name |_<.Result | |
14 | |=. <notextile>%x == %y</notextile> |
||
15 | 11 | Per Amundsen | <notextile>%x = %y</notextile> |
16 | 12 | Per Amundsen | <notextile>%x != %y</notextile> |
17 | 16 | Per Amundsen | <notextile>%x !== %y</notextile> |
18 | 12 | Per Amundsen | <notextile>%x < %y</notextile> |
19 | <notextile>%x > %y</notextile> |
||
20 | <notextile>%x <= %y</notextile> |
||
21 | <notextile>%x >= %y</notextile> |
||
22 | <notextile>%x // %y</notextile> |
||
23 | <notextile>%x \\ %y</notextile> |
||
24 | <notextile>%x & %y</notextile> |
||
25 | |^. Equal |
||
26 | 15 | Per Amundsen | Equal |
27 | 1 | Per Amundsen | Not equal |
28 | 16 | Per Amundsen | Not equal |
29 | 10 | Per Amundsen | Less than |
30 | Greater than |
||
31 | Less than or equal to |
||
32 | Greater than or equal to |
||
33 | Multiple Of (Divides) |
||
34 | Not Multiple Of (Not Divides) |
||
35 | Bitwise And |
||
36 | |^. True, if %x is equal to %y. |
||
37 | True, if %x is equal to %y. |
||
38 | 16 | Per Amundsen | True, if %x is not equal to %y. |
39 | 10 | Per Amundsen | True, if %x is not equal to %y. |
40 | True, if %x is strictly less than %y. |
||
41 | True, if %x is strictly greater than %y. |
||
42 | True, if %x is less than or equal to %y. |
||
43 | True, if %x is greater than or equal to %y. |
||
44 | True, if %x divides %y. |
||
45 | True, if %x does not divides %y. |
||
46 | True, if (bit representation of) %x AND %y is a none zero. |
||
47 | 14 | Per Amundsen | | |
48 | 17 | Per Amundsen | |
49 | h2. String Comparison Operators |
||
50 | |||
51 | |_.Syntax |_.Name |_<.Result | |
||
52 | |=. %x isin %y |
||
53 | %x isincs %y |
||
54 | %x iswm %y |
||
55 | %x iswmcs %y |
||
56 | %x isnum |
||
57 | %x isnum N |
||
58 | %x isnum N- |
||
59 | %x isnum N-M |
||
60 | %x isletter |
||
61 | %x isletter N |
||
62 | %x isalnum |
||
63 | %x isalpha |
||
64 | %x islower |
||
65 | %x isupper |
||
66 | |^. Is In |
||
67 | Is In (case sensitive) |
||
68 | Wildcard Matching |
||
69 | Wildcard Matching (case sensitive) |
||
70 | Is Digit |
||
71 | Is Digit, Equal to |
||
72 | Is Digit, Greater than or equal to |
||
73 | Is Digit, in Range |
||
74 | Is a Letter |
||
75 | Is a Letter In A List |
||
76 | Alphanumeric Characters |
||
77 | Alphabetic Characters |
||
78 | All lower case letters |
||
79 | All upper case letters |
||
80 | |^. True, if %x is fully found inside %y. |
||
81 | True, if %x is fully found inside (case sensitive) %y. |
||
82 | True, if wildcard string %x matches %y. |
||
83 | True, if wildcard string %x matches (case sensitive) %y. |
||
84 | True, if %x is a number. |
||
85 | True, if %x is number N. |
||
86 | True, if %x is number N or greater. |
||
87 | True, if %x is a number between N and M (inclusively). |
||
88 | True, if %x is a letter. |
||
89 | True, if %x is a letter in a list of letters. |
||
90 | True, if %x contains only alphabetic or numeric characters. |
||
91 | True, if %x contains only alphabetic characters. |
||
92 | True, if %x contains only lower case letters. |
||
93 | True, if %x contains only upper case letters. |
||
94 | | |
||
95 | 19 | Per Amundsen | |
96 | h2. String Comparison Operators |
||
97 | |||
98 | |_.Syntax |_.Name |_<.Result | |
||
99 | 22 | Per Amundsen | |=. <notextile>a == b</notextile> |
100 | <notextile >a === b</notextile> |
||
101 | <notextile >str1 == str2</notextile> |
||
102 | <notextile >str1 === str2</notextile> |
||
103 | 19 | Per Amundsen | a < b |
104 | a > b |
||
105 | str1 < str2 |
||
106 | 1 | Per Amundsen | str1 > str2 |
107 | |^. Case insensitive character comparison |
||
108 | Case sensitive character comparison |
||
109 | Case insensitive String comparison |
||
110 | Case sensitive String comparison |
||
111 | 25 | Per Amundsen | Lexicographically Less Than |
112 | 1 | Per Amundsen | Lexicographically Greater Than |
113 | Lexicographically Less Than |
||
114 | Lexicographically Greater Than |
||
115 | |^. True, if character a is equal to character b, case insensitive. |
||
116 | True, if character a is equal to character b, case sensitive. |
||
117 | True, if str1 equals str2 in a case insensitive manner. |
||
118 | True, if str1 equals str2 in a case sensitive manner. |
||
119 | True, if the [[$asc]](a) comes before [[$asc]](b) |
||
120 | True, if the [[$asc]](a) comes after [[$asc]](b) |
||
121 | True, if str1 comes before str2 |
||
122 | True, if str1 comes after str2 |
||
123 | 23 | Per Amundsen | | |
124 | |||
125 | h2. Channel-related Operators |
||
126 | |||
127 | |_.Syntax |_.Name |_<.Result | |
||
128 | |=. %x ison %y |
||
129 | %x isop %y |
||
130 | %x ishop %y |
||
131 | %x issop %y |
||
132 | %x isowner %y |
||
133 | %x isvoice %y |
||
134 | %x isreg %y |
||
135 | %x ischan |
||
136 | %x isban %y |
||
137 | %x isinvite %y |
||
138 | %x isexcept %y |
||
139 | |^. Is On |
||
140 | Is an Operator |
||
141 | Is a Halfop |
||
142 | is a Protected Operator |
||
143 | Is a Channel Owner |
||
144 | Is a Voice |
||
145 | Is a Regular |
||
146 | Is a Channel |
||
147 | Is a ban |
||
148 | Ia a Invite |
||
149 | Is a Except |
||
150 | 24 | Per Amundsen | |^. True, if nick %x is on channel %y. |
151 | 23 | Per Amundsen | True, if nick %x is an operators on channel %y. |
152 | True, if nick %x is a halfop on channel %y. |
||
153 | True, if nick %x is a protected operator on channel %y. |
||
154 | True, if nick %x is a channel owner on channel %y. |
||
155 | True, if nick %x is a voice on channel %y. |
||
156 | True, if nick %x is a regular user on channel %y. |
||
157 | True, if channel %x is a channel you are on. |
||
158 | True, if ban address %x is a ban on channel %y. (taken from IBL) |
||
159 | True, if invite address %x is a invite on channel %y. (taken from IIL) |
||
160 | True, if except address %x is a except on channel %y. (taken from IEL) |
||
161 | 19 | Per Amundsen | | |
162 | 28 | Per Amundsen | |
163 | h2. List-related Operators |
||
164 | |||
165 | |_.Syntax |_.Name |_<.Result | |
||
166 | |=. %x isaop |
||
167 | %x isaop %y |
||
168 | %x isavoice |
||
169 | %x isavoice %y |
||
170 | %x isignore |
||
171 | %x isignore %y |
||
172 | %x isnotify |
||
173 | |^. TODO |
||
174 | TODO |
||
175 | TODO |
||
176 | TODO |
||
177 | In Ignore List |
||
178 | In Ignore List For Type |
||
179 | TODO |
||
180 | |^. TODO |
||
181 | TODO |
||
182 | TODO |
||
183 | TODO |
||
184 | True, if host %x is in the ignore list. |
||
185 | True, if host %x is in the ignore list for type %y. |
||
186 | TODO |
||
187 | | |
||
188 | |||
189 | h2. Other Operators |
||
190 | |||
191 | |_.Syntax |_.Name |_<.Result | |
||
192 | |=. %x isurl |
||
193 | |^. Is a url |
||
194 | |^. True, if %x is a url. |
||
195 | | |