Answer the question
In order to leave comments, you need to log in
How to compare in execute vk?
var a=API.groups.getById({"group_ids":"1","fields":"members_count,can_post"});
if (parseInt ([email protected]_post) != 0){
return "Можно писать";
}else{
return "Нельзя писать";
}
Answer the question
In order to leave comments, you need to log in
Looking at the return value
var a=API.groups.getById({"group_ids":"1","fields":"members_count,can_post"});
return [email protected]_post;
var a=API.groups.getById({"group_ids":"1","fields":"members_count,can_post"});
if (parseInt ([email protected]_post[0]) != 0){
return "Можно писать";
}else{
return "Нельзя писать";
}
response: 'Нельзя писать'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question