Board Thread:General Coding Help/@comment-5211495-20160811011735/@comment-4347751-20160811170328

KurwaAntics wrote: Saftzie wrote: For example how to express if the protection level = sysop? Not sure if this is correct but, I guess:  $.getJSON('/api.php', {	format: 'json',	action: 'query',	prop: 'info',	inprop: 'protection',	titles: 'File:Wiki.png' // or whatever page }, function (data) {    if (inprop == sysop) {    // Execute code }; }); Don't quote me though, I think it should work, it may not.