Is it allowed to provide logical answers to a question, even if he don't know the syntax of a language. Such as using conditions, loops, etc.

In some cases it cannot be provided as comment, because it need a large explanation or a good formatted code will do more than an explanation.

For eg:

The OP is getting data from a db or any. He was able to do that. Now he need to group every 3 items or so and he don't know how to do.

Now this may be tricky. If there is no straight way of achieving this, we can do so by

```
if (item_num % 3 == 0){//do something}

```

One knows the trick, but he don't know the syntax of the language the OP is using.

Can he provide the answer and disclaiming potential syntax errors