You don't need all those spaces, either.
If you're trying to save on filespace or get confused by too many curlybrackets:
function newestNonAdminClient() {
for (%i = clientGroup.getCount() - 1;%i >= 0;%i--) {
%cl = clientGroup.getObject(%i);
if (!%cl.isAdmin && !%cl.isSuperAdmin)
return %cl;
}
return -1;
}
(Yes, this is perfectly valid. If an if structure only runs one line you don't need to put a {} after it.)