From WikiChip
Editing mirc/operators

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 30: Line 30:
 
|-
 
|-
 
| Power || a ^ b
 
| Power || a ^ b
|-
 
| Bitwise AND || a & b
 
|-
 
| Floor division (does not work with /set and /var) || a // b
 
 
|}
 
|}
  
Line 92: Line 88:
  
 
== String Comparison Operators ==
 
== String Comparison Operators ==
mIRC provides a set of operators that can be used to compare two strings. The two iswm and iswmcs operators support two {{mirc|wildcard}} characters as well, the question mark (?) substitutes for any one character and the asterisk character ("*") substitutes for any zero or more characters.
+
mIRC provides a set of operators that can be used to compare two strings. The two iswm and iswmcs operators support two wildcard characters as well, the question mark (?) substitutes for any one character and the asterisk character ("*") substitutes for any zero or more characters.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 113: Line 109:
 
|%x isalpha || Alphabetic Characters || True, if %x contains only alphabetic characters.
 
|%x isalpha || Alphabetic Characters || True, if %x contains only alphabetic characters.
 
|-
 
|-
|%x islower || All lower case letters || True, if %x does not contain any upper case letters. %x can contain non alphabetic characters.
+
|%x islower || All lower case letters || True, if %x contains only lower case letters.
 
|-
 
|-
|%x isupper || All upper case letters || True, if %x does not contain any lower case letters. %x can contain non alphabetic characters.
+
|%x isupper || All upper case letters || True, if %x contains only upper case letters.
 
|}
 
|}
  
Line 138: Line 134:
 
|-
 
|-
 
|a === b || Case sensitive character comparison || True, if character a is equal to character b, case sensitive.
 
|a === b || Case sensitive character comparison || True, if character a is equal to character b, case sensitive.
|-
 
|a != b<br />a !== b || Case insensitive character comparison || True, if character a is not equal to character b, case insensitive.
 
|-
 
|a !=== b || Case sensitive character comparison || True, if character a is not equal to character b, case sensitive.
 
 
|-
 
|-
 
|str1 == str2 || Case insensitive String comparison || True, if str1 equals str2 in a case insensitive manner.
 
|str1 == str2 || Case insensitive String comparison || True, if str1 equals str2 in a case insensitive manner.
 
|-
 
|-
 
|str1 === str2 || Case sensitive String comparison || True, if str1 equals str2 in a case sensitive manner.
 
|str1 === str2 || Case sensitive String comparison || True, if str1 equals str2 in a case sensitive manner.
|-
 
|str1 != str2<br />str1 !== str2 || Case insensitive String comparison || True, if str1 does not equal str2 in a case insensitive manner.
 
|-
 
|str1 !=== str2 || Case sensitive String comparison || True, if str1 does not equal str2 in a case sensitive manner.
 
 
|-
 
|-
 
|a < b || Lexicographically Less Than || True, if the {{mIRC|$asc}}(a) comes before {{mIRC|$asc}}(b)
 
|a < b || Lexicographically Less Than || True, if the {{mIRC|$asc}}(a) comes before {{mIRC|$asc}}(b)
Line 185: Line 173:
 
|-
 
|-
 
|%x isop %y || Is an Operator || True, if nick %x is an operators on channel %y.
 
|%x isop %y || Is an Operator || True, if nick %x is an operators on channel %y.
|-
 
|%x isowner %y || Is an Owner || True, if nick %x is an owner on channel %y.
 
 
|-
 
|-
 
|%x ishop %y || Is a Halfop || True, if nick %x is a halfop on channel %y.
 
|%x ishop %y || Is a Halfop || True, if nick %x is a halfop on channel %y.
 
|-
 
|-
|%x isvoice %y || Is a Voice || True, if nick %x is a voice on channel %y (isvo operator also supported).
+
|%x isvoice %y || Is a Voice || True, if nick %x is a voice on channel %y.
 
|-
 
|-
 
|%x isreg %y || Is a Regular || True, if nick %x is a regular user on channel %y.
 
|%x isreg %y || Is a Regular || True, if nick %x is a regular user on channel %y.
 
|-
 
|-
|%x ischan || Is a Channel || True, if channel %x is a channel you are on and if the %x channel window is still open (doesn't matter if you are connected or not).
+
|%x ischan || Is a Channel || True, if channel %x is a channel you are on.
 
|-
 
|-
 
|%x isban %y || Is a ban || True, if ban address %x is a ban on channel %y. (taken from IBL)
 
|%x isban %y || Is a ban || True, if ban address %x is a ban on channel %y. (taken from IBL)
Line 200: Line 186:
 
|%x isquiet %y || Is a quiet ban || True, if ban address %x is a quiet ban on channel %y. (taken from IQL)
 
|%x isquiet %y || Is a quiet ban || True, if ban address %x is a quiet ban on channel %y. (taken from IQL)
 
|}
 
|}
 
'''Note''': the operator ishelp is the same as the operator ishop, and the operator isvo is the same as the operator isvoice
 
  
 
Example:
 
Example:
Line 229: Line 213:
 
|%x isnotify || In Notify List || True, if host %x is in the notify list.
 
|%x isnotify || In Notify List || True, if host %x is in the notify list.
 
|}
 
|}
 
'''Note''': the operator isauto is the same as the operator isaop.
 
  
 
Example:
 
Example:

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)