NewzBoy wrote:Hi
Is there a command for TCL similar to || (or) in mIRC for the comparing of strings etc.?
Thanks.
Code: Select all
} else {
Code: Select all
} elseif {*something*} {
Code: Select all
if (($1 == $null) || ($2 == $null)) { goto printIAL.error }
Code: Select all
if {$var == 1} { ...........}
if {($var == "blabla")} { .......}
if {($mystring === $myvar)} { ...........}
Code: Select all
The Operators
== equal to
=== equal to (case-sensitive)
!= not equal to
< less than
> larger than
>= larger than or equal to
<= smaller than or equal to
// v2 is a multiple of v1
\\ v2 is not a multiple of v1
& bitwise comparison
isin string v1 is in string v2
isincs string v1 is in string v2 (case sensitive)
iswm wildcard string v1 matches string v2
isnum number v1 is a number in the range v2
isletter letter v1 is a letter in the list of v2
isalnum text contains only letters and numbers
isalpha text contains only letters
islower text contains only lower case letters
isupper text contains only upper case letters
ison nickname v1 is on channel v2
isop nickname v1 is an op on channel v2
ishop nickname v1 is a halfop on channel v2
isvoice nickname v1 has a voice on channel v2
isreg nickname v1 is a normal nick on channel v2
ischan if v1 is a channel which you are on.
isban if v1 is a banned address in internal ban list
isaop if v1 is a user in your auto-op list channel v2 isavoice if v1 is a user in your auto-voice channel v2
isignore if v1 is a user in your ignore list with ignore
isprotect if v1 is a user in your protect list of v2
isnotify if v1 is a user in your notify list.
In logic, exclusive disjunction is a logical operator. The exclusive disjunction of propositions A and B is usually called A xor B, where "xor" stands for "exclusive or" and is pronounced "eks-or".
The operation yields the result TRUE when one, and only one, of its operands is TRUE.