var a=API.groups.getById({"group_ids":"1","fields":"members_count,can_post"});
return a@.can_post;
response: [0]
var a=API.groups.getById({"group_ids":"1","fields":"members_count,can_post"});
if (parseInt (a@.can_post[0]) != 0){
return "Можно писать";
}else{
return "Нельзя писать";
}
response: 'Нельзя писать'