Project

General

Profile

Scripting Operators » History » Version 26

Per Amundsen, 10/22/2015 04:08 PM

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