mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-04 10:28:32 +00:00
21 lines
395 B
Perl
21 lines
395 B
Perl
|
/* Examples from [[mw:Extension:AbuseFilter/Rules format#Simple comparisons]] */
|
||
|
|
||
|
!(1 == 2) &
|
||
|
(1 <= 2) &
|
||
|
!(1 >= 2) &
|
||
|
(1 != 2) &
|
||
|
(1 < 2) &
|
||
|
!(1 > 2) &
|
||
|
(2 = 2) &
|
||
|
('' == false) &
|
||
|
!('' === false) &
|
||
|
(1 == true) &
|
||
|
!(1 === true) &
|
||
|
(['1','2','3'] == ['1','2','3']) &
|
||
|
([1,2,3] === [1,2,3]) &
|
||
|
(['1','2','3'] == [1,2,3]) &
|
||
|
!(['1','2','3'] === [1,2,3]) &
|
||
|
([1,1,''] == [true, true, false]) &
|
||
|
!(['1'] == '1')
|
||
|
|