すみません。言葉たらずでした。
>>680さんには伝わったのかな?

if (nantoka) {
  return 1;
}
return 0;

でもいいですよね?という質問でした。