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