https://bugzilla.wikimedia.org/show_bug.cgi?id=25373

           Summary: conditional operator with () returns false
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: AbuseFilter
        AssignedTo: agarr...@wikimedia.org
        ReportedBy: aokomori...@enmps.net
                CC: wikibugs-l@lists.wikimedia.org


Conditional operators doesn't work well.

"(1 == 1) ? true : false" returns true,
but "(1 == 1) ? (true) : (false)" return false.

And also "if (1==1) then (true) else (false) end" return false, too.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to